math.geom3d
Class Point3D
- java.lang.Object
-
- math.geom3d.Point3D
-
-
Constructor Summary
Constructors Constructor and Description Point3D()Initialize at coordinate (0,0,0).Point3D(double x, double y, double z)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description Box3DboundingBox()PointSet3Dclip(Box3D box)Returns the clipped point, or null if empty.booleancontains(Point3D point)A point 'contains' another point if their euclidean distance is less than the accuracy.doubledistance(Point3D point)Gets the distance of the shape to the given point, or the distance of point to the frontier of the shape in the case of a plain shape.booleanequals(java.lang.Object obj)doublegetX()doublegetY()doublegetZ()booleanisBounded()Returns true, as a point is always bounded.booleanisEmpty()Returns false, as a point is never empty.Point3Dminus(Point3D p2)Point3Dminus(Vector3D vec)Point3Dplus(Point3D p2)Point3Dplus(Vector3D vec)Point3Dtransform(AffineTransform3D trans)Applies the given affine transform to the point, and return the transformed point.
-
-
-
Constructor Detail
-
Point3D
public Point3D()
Initialize at coordinate (0,0,0).
-
Point3D
public Point3D(double x, double y, double z)
-
-
Method Detail
-
getX
public double getX()
-
getY
public double getY()
-
getZ
public double getZ()
-
distance
public double distance(Point3D point)
Description copied from interface:Shape3DGets the distance of the shape to the given point, or the distance of point to the frontier of the shape in the case of a plain shape.
-
contains
public boolean contains(Point3D point)
A point 'contains' another point if their euclidean distance is less than the accuracy.
-
isEmpty
public boolean isEmpty()
Returns false, as a point is never empty.
-
isBounded
public boolean isBounded()
Returns true, as a point is always bounded.
-
boundingBox
public Box3D boundingBox()
- Specified by:
boundingBoxin interfaceShape3D
-
clip
public PointSet3D clip(Box3D box)
Returns the clipped point, or null if empty.
-
transform
public Point3D transform(AffineTransform3D trans)
Applies the given affine transform to the point, and return the transformed point.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-
DMelt 3.0 © DataMelt by jWork.ORG