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
- All Implemented Interfaces:
java.io.Serializable,V3D_FiniteGeometry
- Direct Known Subclasses:
V3D_EnvelopeFace
public class V3D_Rectangle extends V3D_Plane implements V3D_FiniteGeometry
V3D_Rectangle. This class defines a finite plane that is rectangular. This
can be infinitesimally small in which case it is a point when
V3D_Plane.p, V3D_Plane.q, V3D_Plane.r and s are equal.
p ----------- q
| |
| |
| |
r ----------- s
- Version:
- 1.0
- Author:
- Andy Turner
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description V3D_Rectangle(V3D_Point p, V3D_Point q, V3D_Point r, V3D_Point s)Checks that pq and rs are orthogonal to pr and qs. -
Method Summary
Modifier and Type Method Description V3D_EnvelopegetEnvelope()V3D_GeometrygetIntersection(V3D_Line l)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
-
Field Details
-
Constructor Details
-
V3D_Rectangle
Checks that pq and rs are orthogonal to pr and qs.- Parameters:
p- The top left corner of the rectangle.q- The top right corner of the rectangle.r- The bottom left corner of the rectangle.s- The bottom right corner of the rectangle.
-
-
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:
l- The line to intersect with.- Returns:
- A point or line segment.
-