public class ExactWrappableSphere extends ExactWrappableGeometry implements ParametricEntity
| Constructor and Description |
|---|
ExactWrappableSphere(Frame iparent,
Point3d cInParent,
double R)
Create a new wrapping sphere in the given parent frame, with the given
center location and radius.
|
| Modifier and Type | Method and Description |
|---|---|
Point3d |
getLocation(double[] params)
Get location of the point described by the given parameters, in some body
coordinate frame.
|
Point3d |
getPosition(double[] params)
Get position of the point described by the given parameters, in world
coordinates.
|
double |
getThreshRat()
Get the threshold ratio for breaking contact.
|
void |
setThreshRat(double tr)
Set the threshold ratio for breaking contact.
|
ExactWrapPath |
wrap(Point fm1,
Point fm2)
Find a path between the two points that wraps around this object.
|
ExactWrapPath |
wrap(Point fm1,
Point fm2,
ExactWrapPath prev)
Find a path between the two points that wraps around this object.
|
getParent, getTransformFromWorld, getTransformToParent, getTransformToWorldpublic ExactWrappableSphere(Frame iparent, Point3d cInParent, double R)
iparent - parent framecInParent - location of the center (parent frame)R - radius of this spherepublic void setThreshRat(double tr)
tr - new ratio for breaking contactpublic double getThreshRat()
public ExactWrapPath wrap(Point fm1, Point fm2)
wrap in class ExactWrappableGeometryfm1 - first pointfm2 - second pointpublic ExactWrapPath wrap(Point fm1, Point fm2, ExactWrapPath prev)
ExactWrappableGeometrywrap in class ExactWrappableGeometryfm1 - first pointfm2 - second pointprev - previous pathpublic Point3d getLocation(double[] params)
getLocation in interface ParametricEntityparams - parameterspublic Point3d getPosition(double[] params)
getPosition in interface ParametricEntityparams - parameters