java.lang.Object
uk.ac.leeds.ccg.v3d.core.V3D_Object
uk.ac.leeds.ccg.v3d.geometry.V3D_Geometry
uk.ac.leeds.ccg.v3d.geometry.V3D_Plane
uk.ac.leeds.ccg.v3d.geometry.V3D_Triangle
- All Implemented Interfaces:
java.io.Serializable,V3D_FiniteGeometry
public class V3D_Triangle extends V3D_Plane implements V3D_FiniteGeometry
V3D_Triangle This general class defines those planes that are all bounded
by their envelope exactly. It can be extended to consider finite planes that
are not triangular a particular shape, such as circles, ellipses, triangles, squares, and
other regular or irregular 2D shapes.
- Version:
- 1.0
- Author:
- Andy Turner
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description V3D_Triangle(V3D_Point p, V3D_Point q, V3D_Point r) -
Method Summary
Modifier and Type Method Description V3D_EnvelopegetEnvelope()V3D_GeometrygetIntersection(V3D_Line li)booleanisIntersectedBy(V3D_Point pt)Methods inherited from class uk.ac.leeds.ccg.v3d.geometry.V3D_Plane
equals, getIntersection, getIntersection, getIntersection, hashCode, isIntersectedBy, isIntersectedBy, isOnPlane, isParallel, isParallel, toString
-
Constructor Details
-
Method Details
-
getEnvelope
- Specified by:
getEnvelopein interfaceV3D_FiniteGeometry
-
isIntersectedBy
- Overrides:
isIntersectedByin classV3D_Plane- Parameters:
pt- The point to intersect with.- Returns:
- A point or line segment.
-
getIntersection
- Overrides:
getIntersectionin classV3D_Plane- Parameters:
li- The line to intersect with.- Returns:
- A point or line segment.
-