Package org.bzdev.p3d

Interface Model3DOps.Triangle

All Known Implementing Classes:
Model3D.Triangle
Enclosing interface:
Model3DOps<T extends Model3DOps.Triangle>

public static interface Model3DOps.Triangle
Interface providing basic operations for triangles.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the triangle's color.
    Get the tag associated with a triangle.
    double
    Get the x coordinate of a triangle's first vertex.
    double
    Get the x coordinate of a triangle's second vertex.
    double
    Get the x coordinate of a triangle's third vertex.
    double
    Get the y coordinate of a triangle's first vertex.
    double
    Get the y coordinate of a triangle's second vertex.
    double
    Get the y coordinate of a triangle's third vertex.
    double
    Get the z coordinate of a triangle's first vertex.
    double
    Get the z coordinate of a triangle's second vertex.
    double
    Get the z coordinate of a triangle's third vertex.
  • Method Details

    • getX1

      double getX1()
      Get the x coordinate of a triangle's first vertex.
      Returns:
      the x coordinate
    • getY1

      double getY1()
      Get the y coordinate of a triangle's first vertex.
      Returns:
      the y coordinate
    • getZ1

      double getZ1()
      Get the z coordinate of a triangle's first vertex.
      Returns:
      the z coordinate
    • getX2

      double getX2()
      Get the x coordinate of a triangle's second vertex.
      Returns:
      the x coordinate
    • getY2

      double getY2()
      Get the y coordinate of a triangle's second vertex.
      Returns:
      the y coordinate
    • getZ2

      double getZ2()
      Get the z coordinate of a triangle's second vertex.
      Returns:
      the z coordinate
    • getX3

      double getX3()
      Get the x coordinate of a triangle's third vertex.
      Returns:
      the x coordinate
    • getY3

      double getY3()
      Get the y coordinate of a triangle's third vertex.
      Returns:
      the y coordinate
    • getZ3

      double getZ3()
      Get the z coordinate of a triangle's third vertex.
      Returns:
      the z coordinate
    • getColor

      Color getColor()
      Get the triangle's color.
      Returns:
      the color of the triangle; null if there is none.
    • getTag

      Object getTag()
      Get the tag associated with a triangle.
      Returns:
      the triangle's tag; null if there is none