public class EllipticBoundary extends java.lang.Object implements BoundaryCurve2D
BoundaryCurve2D.CurveType
Constructor and Description |
---|
EllipticBoundary() |
EllipticBoundary(VectorNd params) |
Modifier and Type | Method and Description |
---|---|
double |
getLength() |
int |
getNumParams() |
VectorNd |
getParameters() |
Point2d |
getPoint(double t) |
void |
getPoint(double t,
double[] out) |
static void |
getPoint(double t,
double a,
double b,
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) |
static int |
projectPerp(double[] in,
double a,
double b,
int quadrant,
double[] out) |
void |
projectToBoundary(double[] in,
double[] out) |
boolean |
projectWithin(double[] in,
double[] out)
If in[] is outside curve, projects to boundary
|
void |
setParameters(VectorNd params) |
public EllipticBoundary(VectorNd params)
public EllipticBoundary()
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 static void getPoint(double t, double a, double b, double[] out)
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 boolean projectWithin(double[] in, double[] out)
projectWithin
in interface BoundaryCurve2D
public static int projectPerp(double[] in, double a, double b, int quadrant, double[] out)
public void projectToBoundary(double[] in, double[] out)
projectToBoundary
in interface BoundaryCurve2D