Module uk.ac.leeds.ccg.vector3D
Class V3D_EnvelopeFace
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_Rectangle
uk.ac.leeds.ccg.v3d.geometry.envelope.V3D_EnvelopeFace
- All Implemented Interfaces:
java.io.Serializable,V3D_FiniteGeometry
- Direct Known Subclasses:
V3D_EnvelopeFaceAft,V3D_EnvelopeFaceBottom,V3D_EnvelopeFaceFore,V3D_EnvelopeFaceLeft,V3D_EnvelopeFaceRight,V3D_EnvelopeFaceTop
public abstract class V3D_EnvelopeFace extends V3D_Rectangle
A class for a rectangle aligned with axes.
The rectangles may be infinitesimally small in terms of one (line segment) or
two dimensions (point).
- Version:
- 1.0
- Author:
- Andy Turner
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description protected V3D_Envelopeen -
Constructor Summary
Constructors Constructor Description V3D_EnvelopeFace(V3D_Point p, V3D_Point q, V3D_Point r, V3D_Point s) -
Method Summary
Modifier and Type Method Description V3D_EnvelopegetEnvelope()abstract V3D_GeometrygetIntersection(V3D_Line l)Methods inherited from class uk.ac.leeds.ccg.v3d.geometry.V3D_Plane
equals, getIntersection, getIntersection, getIntersection, hashCode, isIntersectedBy, isIntersectedBy, isOnPlane, isParallel, isParallel, toString
-
Field Details
-
Constructor Details
-
V3D_EnvelopeFace
- Parameters:
p- One of the four corners of the rectangle/envelope.q- One of the four corners of the rectangle/envelope.r- One of the four corners of the rectangle/envelope.s- One of the four corners of the rectangle/envelope.
-
-
Method Details
-
getEnvelope
- Specified by:
getEnvelopein interfaceV3D_FiniteGeometry- Overrides:
getEnvelopein classV3D_Rectangle
-
getIntersection
- Overrides:
getIntersectionin classV3D_Rectangle- Parameters:
l- The line to intersect with.- Returns:
- A point or line segment.
-