maspack.spatialmotion.projections
Class RectangularBoundary
java.lang.Object
maspack.spatialmotion.projections.RectangularBoundary
- All Implemented Interfaces:
- BoundaryCurve2D
public class RectangularBoundary
- extends java.lang.Object
- implements BoundaryCurve2D
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RectangularBoundary
public RectangularBoundary(VectorNd params)
RectangularBoundary
public RectangularBoundary()
isWithin
public static boolean isWithin(double X,
double Y,
double a,
double b)
isWithin
public boolean isWithin(double X,
double Y)
- Specified by:
isWithin
in interface BoundaryCurve2D
getLength
public double getLength()
- Specified by:
getLength
in interface BoundaryCurve2D
getPoint
public Point2d getPoint(double t)
- Specified by:
getPoint
in interface BoundaryCurve2D
getTVar
public double getTVar(double X,
double Y)
- Specified by:
getTVar
in interface BoundaryCurve2D
getPoint
public void getPoint(double t,
double[] out)
- Specified by:
getPoint
in interface BoundaryCurve2D
getTangent
public void getTangent(double t,
double[] out)
- Specified by:
getTangent
in interface BoundaryCurve2D
setParameters
public void setParameters(VectorNd params)
- Specified by:
setParameters
in interface BoundaryCurve2D
getParameters
public VectorNd getParameters()
- Specified by:
getParameters
in interface BoundaryCurve2D
getNumParams
public int getNumParams()
- Specified by:
getNumParams
in interface BoundaryCurve2D
getType
public BoundaryCurve2D.CurveType getType()
- Specified by:
getType
in interface BoundaryCurve2D
projectToBoundary
public void projectToBoundary(double[] in,
double[] out)
- Specified by:
projectToBoundary
in interface BoundaryCurve2D
projectWithin
public boolean projectWithin(double[] in,
double[] out)
- Specified by:
projectWithin
in interface BoundaryCurve2D