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 TypeMethodDescriptionbooleangetTag()Get the edge's tag.floatgetX1()Get the x coordinate of the starting point of the edge.floatgetX2()Get the x coordinate of the ending point of the edge.floatgetY1()Get the y coordinate of the starting point of the edge.floatgetY2()Get the y coordinate of the ending point of the edge.floatgetZ1()Get the z coordinate of the starting point of the edge.floatgetZ2()Get the z coordinate of the ending point of the edge.inthashCode()
-
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
-