public class RectangularBoundary extends java.lang.Object implements BoundaryCurve2D
BoundaryCurve2D.CurveType
Constructor and Description |
---|
RectangularBoundary() |
RectangularBoundary(VectorNd params) |
Modifier and Type | Method and Description |
---|---|
double |
getLength() |
int |
getNumParams() |
VectorNd |
getParameters() |
Point2d |
getPoint(double t) |
void |
getPoint(double t,
double[] out) |
void |
getTangent(double t,
double[] out) |
double |
getTVar(double X,
double Y) |
BoundaryCurve2D.CurveType |
getType() |
boolean |
isWithin(double X,
double Y) |
static boolean |
isWithin(double X,
double Y,
double a,
double b) |
void |
projectToBoundary(double[] in,
double[] out) |
boolean |
projectWithin(double[] in,
double[] out) |
void |
setParameters(VectorNd params) |
public RectangularBoundary(VectorNd params)
public RectangularBoundary()
public static boolean isWithin(double X, double Y, double a, double b)
public boolean isWithin(double X, double Y)
isWithin
in interface BoundaryCurve2D
public double getLength()
getLength
in interface BoundaryCurve2D
public Point2d getPoint(double t)
getPoint
in interface BoundaryCurve2D
public double getTVar(double X, double Y)
getTVar
in interface BoundaryCurve2D
public void getPoint(double t, double[] out)
getPoint
in interface BoundaryCurve2D
public void getTangent(double t, double[] out)
getTangent
in interface BoundaryCurve2D
public void setParameters(VectorNd params)
setParameters
in interface BoundaryCurve2D
public VectorNd getParameters()
getParameters
in interface BoundaryCurve2D
public int getNumParams()
getNumParams
in interface BoundaryCurve2D
public BoundaryCurve2D.CurveType getType()
getType
in interface BoundaryCurve2D
public void projectToBoundary(double[] in, double[] out)
projectToBoundary
in interface BoundaryCurve2D
public boolean projectWithin(double[] in, double[] out)
projectWithin
in interface BoundaryCurve2D