Module simpa.core

Class Arc3D

java.lang.Object
simpa.core.api.utils.Arc3D

public class Arc3D extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 1
      p2 - point 2
      p3 - point 3
      boolean - 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.