Package org.bzdev.p3d

Class Model3D.Edge

java.lang.Object
org.bzdev.p3d.Model3D.Edge
Enclosing class:
Model3D

public static class Model3D.Edge extends Object
Class representing the edge of a triangle in a 3 dimensional space.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    Get the edge's tag.
    float
    Get the x coordinate of the starting point of the edge.
    float
    Get the x coordinate of the ending point of the edge.
    float
    Get the y coordinate of the starting point of the edge.
    float
    Get the y coordinate of the ending point of the edge.
    float
    Get the z coordinate of the starting point of the edge.
    float
    Get the z coordinate of the ending point of the edge.
    int
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getX1

      public float getX1()
      Get the x coordinate of the starting point of the edge.
      Returns:
      the x coordinate
    • getY1

      public float getY1()
      Get the y coordinate of the starting point of the edge.
      Returns:
      the y coordinate
    • getZ1

      public float getZ1()
      Get the z coordinate of the starting point of the edge.
      Returns:
      the z coordinate
    • getX2

      public float getX2()
      Get the x coordinate of the ending point of the edge.
      Returns:
      the x coordinate
    • getY2

      public float getY2()
      Get the y coordinate of the ending point of the edge.
      Returns:
      the y coordinate
    • getZ2

      public float getZ2()
      Get the z coordinate of the ending point of the edge.
      Returns:
      the z coordinate
    • getTag

      public Object getTag()
      Get the edge's tag.
      Returns:
      the tag; null if there is none