Package org.robwork.sdurw_geometry
Class QuadraticCurvePtr
- java.lang.Object
-
- org.robwork.sdurw_geometry.QuadraticCurvePtr
-
public class QuadraticCurvePtr extends java.lang.Object
Ptr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description QuadraticCurvePtr()
Default constructor yielding a NULL-pointer.QuadraticCurvePtr(long cPtr, boolean cMemoryOwn)
QuadraticCurvePtr(QuadraticCurve ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
Method Summary
-
-
-
Constructor Detail
-
QuadraticCurvePtr
public QuadraticCurvePtr(long cPtr, boolean cMemoryOwn)
-
QuadraticCurvePtr
public QuadraticCurvePtr()
Default constructor yielding a NULL-pointer.
-
QuadraticCurvePtr
public QuadraticCurvePtr(QuadraticCurve ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(QuadraticCurvePtr obj)
-
delete
public void delete()
-
deref
public QuadraticCurve deref()
The pointer stored in the object.
-
__ref__
public QuadraticCurve __ref__()
Dereferencing operator.
-
getDeref
public QuadraticCurve getDeref()
Member access operator.
-
equals
public boolean equals(QuadraticCurve p)
-
isShared
public boolean isShared()
check if this Ptr has shared ownership or none
ownership- Returns:
- true if Ptr has shared ownership, false if it has no ownership.
-
isNull
public boolean isNull()
checks if the pointer is null- Returns:
- Returns true if the pointer is null
-
cptr
public QuadraticCurveCPtr cptr()
-
transform
public QuadraticCurvePtr transform(Transform3D T)
rw::math::Transform3D<double>&) const
-
transform
public QuadraticCurvePtr transform(Vector3D P)
rw::math::Vector3D<double>&) const
-
scale
public QuadraticCurvePtr scale(double factor)
-
reverse
public QuadraticCurvePtr reverse()
-
clone
public QuadraticCurvePtr clone()
-
discretizeAdaptive
public SWIGTYPE_p_std__listT_rw__math__Vector3DT_double_t_t discretizeAdaptive(double stepsPerRevolution)
-
obr
public OBB obr()
-
closestPoints
public SWIGTYPE_p_std__vectorT_rw__math__Vector3DT_double_t_t closestPoints(Vector3D p)
-
CurveEqual
public boolean CurveEqual(CurveCPtr curve, double eps)
-
x
public Vector3D x(double t)
-
dx
public Vector3D dx(double t)
-
ddx
public Vector3D ddx(double t)
-
call
public Vector3D call(double in)
-
hasLimits
public boolean hasLimits()
-
limits
public pair_d_d limits()
-
inLimits
public boolean inLimits(double t)
-
setLimits
public void setLimits(pair_d_d limits)
-
curvature
public double curvature(double t)
-
closestTime
public double closestTime(Vector3D p)
-
c
public Vector3D c()
The point c.- Returns:
- the point c \in \mathbb{R}^3 .
-
u
public Vector3D u()
The vector u.- Returns:
- the vector u \in \mathbb{R}^3 .
-
v
public Vector3D v()
The vector v.- Returns:
- the vector v \in \mathbb{R}^3 .
-
type
public QuadraticCurve.Type type()
Get the type of curve.- Returns:
- the type of curve.
-
assign
public QuadraticCurve assign(QuadraticCurve rhs)
-
-