java.lang.Object
org.bzdev.p3d.Model3D.Edge
- Enclosing class:
- Model3D
Class representing the edge of a triangle in a 3 dimensional space.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getTag()
Get the edge's tag.float
getX1()
Get the x coordinate of the starting point of the edge.float
getX2()
Get the x coordinate of the ending point of the edge.float
getY1()
Get the y coordinate of the starting point of the edge.float
getY2()
Get the y coordinate of the ending point of the edge.float
getZ1()
Get the z coordinate of the starting point of the edge.float
getZ2()
Get the z coordinate of the ending point of the edge.int
hashCode()
-
Method Details
-
equals
-
hashCode
public int hashCode() -
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
Get the edge's tag.- Returns:
- the tag; null if there is none
-