Uses of Class
org.evoludo.geom.Point3D
Packages that use Point3D
Package
Description
The geometric utilities for working with shapes and spatial relationships.
-
Uses of Point3D in org.evoludo.geom
Subclasses of Point3D in org.evoludo.geomModifier and TypeClassDescriptionclassClass representing a (network) node in 3D space with position and radius.classUtility class for 3D vector manipulations.Methods in org.evoludo.geom that return Point3DModifier and TypeMethodDescriptionPoint3D.scale(double s) Scale the coordinates of this 3D point by a factorsto(s*x,s*y,s*z).Point3D.scale(double sx, double sy, double sz) Scale the coordinates of this 3D point by scalar factorssx,syandsz, respectively, to(sx*x, sy*y, sz*z).Point3D.set(double x, double y, double z) Setx-,y- andz-coordinates of the 3D point.Setx-,y- andz-coordinates of the point to those of the 3D pointp.Point3D.setX(double x) Set thex-coordinate of this 3D point.Point3D.setY(double y) Set they-coordinate of this 3D point.Point3D.setZ(double z) Set thez-coordinate of this 3D point.Point3D.shake(double quake) Point3D.shift(double dx, double dy, double dz) Shift the 3D point bydx,dy, anddzin thex-,y-, andz-coordinates, respectively, to(x+p.x,y+p.y,z+p.z).Shift the 3D point byp.x,p.y, andp.zin thex-,y-, andz-coordinates, respectively, to(x+p.x,y+p.y,z+p.z).Methods in org.evoludo.geom with parameters of type Point3DModifier and TypeMethodDescriptionAdd the 3D vectorsaandband store result in this vector.doubleCalculate the distance between the two 3D pointspandq: \(\sqrt{(p.x-q.x)^2+(p.y-q.y)^2+(p.z-q.z)^2}\).doubleCalculate the distance squared between the two 3D pointspandq: \((p.x-q.x)^2+(p.y-q.y)^2+(p.z-q.z)^2\).Setx-,y- andz-coordinates of the point to those of the 3D pointp.Set the 3D vector pointing fromfromtoto.voidPoint3D.setLocation(Point3D p) Compatibility method (followingPoint2D.setLocation(Point2D p)).Shift the 3D point byp.x,p.y, andp.zin thex-,y-, andz-coordinates, respectively, to(x+p.x,y+p.y,z+p.z).Constructors in org.evoludo.geom with parameters of type Point3D