maspack.spatialmotion.projections
Class ProjectedCurve3D
java.lang.Object
maspack.spatialmotion.projections.ProjectedCurve3D
public class ProjectedCurve3D
- extends java.lang.Object
Method Summary |
double |
computeLength()
|
double |
findClosestPoint(double[] in,
double[] out)
|
void |
findClosestPoint(double[] in,
double[] out,
double[] tangent,
double[] normal)
|
BoundaryCurve2D |
getCurve()
|
double |
getLength()
|
void |
getPoint(double t,
double[] out)
|
double |
getProjection(double[] in,
double[] out,
double[] axis)
|
SphericalProjector |
getProjector()
|
void |
getTangent(double t,
double[] out)
|
void |
getTangentDirection(double[] p1,
double[] p2,
double[] out)
|
boolean |
isWithin(double[] in)
|
void |
setCurve(BoundaryCurve2D curve)
|
void |
setProjector(SphericalProjector projector)
|
static double |
sphericalDistance(double[] pnt1,
double[] pnt2)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProjectedCurve3D
public ProjectedCurve3D(SphericalProjector projector,
BoundaryCurve2D curve)
getPoint
public void getPoint(double t,
double[] out)
getTangent
public void getTangent(double t,
double[] out)
getTangentDirection
public void getTangentDirection(double[] p1,
double[] p2,
double[] out)
getProjection
public double getProjection(double[] in,
double[] out,
double[] axis)
findClosestPoint
public double findClosestPoint(double[] in,
double[] out)
findClosestPoint
public void findClosestPoint(double[] in,
double[] out,
double[] tangent,
double[] normal)
isWithin
public boolean isWithin(double[] in)
sphericalDistance
public static double sphericalDistance(double[] pnt1,
double[] pnt2)
setCurve
public void setCurve(BoundaryCurve2D curve)
getCurve
public BoundaryCurve2D getCurve()
setProjector
public void setProjector(SphericalProjector projector)
getProjector
public SphericalProjector getProjector()
computeLength
public double computeLength()
getLength
public double getLength()