Package org.robwork.sdurw_geometry
Class QuadraticCurveCPtr
- java.lang.Object
-
- org.robwork.sdurw_geometry.QuadraticCurveCPtr
-
public class QuadraticCurveCPtr extends java.lang.ObjectPtr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description QuadraticCurveCPtr()Default constructor yielding a NULL-pointer.QuadraticCurveCPtr(long cPtr, boolean cMemoryOwn)QuadraticCurveCPtr(QuadraticCurve ptr)Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description QuadraticCurve__ref__()Dereferencing operator.Vector3Dc()The point c.QuadraticCurvePtrclone()SWIGTYPE_p_std__vectorT_rw__math__Vector3DT_double_t_tclosestPoints(Vector3D p)doubleclosestTime(Vector3D p)vector_dclosestTimes(Vector3D p)doublecurvature(double t)booleanCurveEqual(CurveCPtr curve, double eps)Vector3Dddx(double t)voiddelete()QuadraticCurvederef()The pointer stored in the object.SWIGTYPE_p_std__listT_rw__math__Vector3DT_double_t_tdiscretizeAdaptive(double stepsPerRevolution)Vector3Ddx(double t)booleanequals(QuadraticCurve p)pair_d_dextremums(Vector3D dir)static longgetCPtr(QuadraticCurveCPtr obj)QuadraticCurvegetDeref()Member access operator.booleanhasLimits()booleaninLimits(double t)booleanisNull()checks if the pointer is nullbooleanisShared()check if this Ptr has shared ownership or none
ownershippair_d_dlimits()OBBobr()QuadraticCurvePtrreverse()QuadraticCurvePtrscale(double factor)QuadraticCurvePtrtransform(Transform3D T)rw::math::Transform3D<double>&) constQuadraticCurvePtrtransform(Vector3D P)rw::math::Vector3D<double>&) constQuadraticCurve.Typetype()Get the type of curve.Vector3Du()The vector u.Vector3Dv()The vector v.Vector3Dx(double t)
-
-
-
Constructor Detail
-
QuadraticCurveCPtr
public QuadraticCurveCPtr(long cPtr, boolean cMemoryOwn)
-
QuadraticCurveCPtr
public QuadraticCurveCPtr()
Default constructor yielding a NULL-pointer.
-
QuadraticCurveCPtr
public QuadraticCurveCPtr(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(QuadraticCurveCPtr 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
-
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)
-
hasLimits
public boolean hasLimits()
-
limits
public pair_d_d limits()
-
inLimits
public boolean inLimits(double t)
-
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.
-
-