java.lang.Object
simpa.core.api.utils.Arc3D
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic double
calculateArcLength
(org.apache.commons.math3.geometry.euclidean.threed.Vector3D p1, org.apache.commons.math3.geometry.euclidean.threed.Vector3D p2, org.apache.commons.math3.geometry.euclidean.threed.Vector3D p3, boolean first) Calculates the length of the arc by fitting a circle to 3 points in 3D space We assume that the points are on a curve in the order of p1, p2, p3.
-
Constructor Details
-
Arc3D
public Arc3D()
-
-
Method Details
-
calculateArcLength
public static double calculateArcLength(org.apache.commons.math3.geometry.euclidean.threed.Vector3D p1, org.apache.commons.math3.geometry.euclidean.threed.Vector3D p2, org.apache.commons.math3.geometry.euclidean.threed.Vector3D p3, boolean first) Calculates the length of the arc by fitting a circle to 3 points in 3D space We assume that the points are on a curve in the order of p1, p2, p3. The special case when they are on a line is handled.- Parameters:
p1
- point 1p2
- point 2p3
- point 3boolean
- first If true the arc length between points p1 and p2 is calculated. If false the arc length between points p2 and p3 is calculated.
-