Package org.robwork.sdurw_trajectory
Class RampInterpolator_dPtr
- java.lang.Object
-
- org.robwork.sdurw_trajectory.RampInterpolator_dPtr
-
public class RampInterpolator_dPtr extends java.lang.Object
Ptr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description RampInterpolator_dPtr()
Default constructor yielding a NULL-pointer.RampInterpolator_dPtr(long cPtr, boolean cMemoryOwn)
RampInterpolator_dPtr(RampInterpolator_d 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 RampInterpolator_d
__ref__()
Dereferencing operator.RampInterpolator_dCPtr
cptr()
double
ddx(double t)
void
delete()
RampInterpolator_d
deref()
The pointer stored in the object.double
duration()
double
dx(double t)
boolean
equals(RampInterpolator_d p)
static long
getCPtr(RampInterpolator_dPtr obj)
RampInterpolator_d
getDeref()
Member access operator.double
getEnd()
Returns the end rotation of the interpolatordouble
getStart()
Returns the start rotation of the interpolatorboolean
isNull()
checks if the pointer is nullboolean
isShared()
check if this Ptr has shared ownership or none
ownershipdouble
x(double t)
-
-
-
Constructor Detail
-
RampInterpolator_dPtr
public RampInterpolator_dPtr(long cPtr, boolean cMemoryOwn)
-
RampInterpolator_dPtr
public RampInterpolator_dPtr()
Default constructor yielding a NULL-pointer.
-
RampInterpolator_dPtr
public RampInterpolator_dPtr(RampInterpolator_d ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(RampInterpolator_dPtr obj)
-
delete
public void delete()
-
deref
public RampInterpolator_d deref()
The pointer stored in the object.
-
__ref__
public RampInterpolator_d __ref__()
Dereferencing operator.
-
getDeref
public RampInterpolator_d getDeref()
Member access operator.
-
equals
public boolean equals(RampInterpolator_d 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 RampInterpolator_dCPtr cptr()
-
x
public double x(double t)
-
dx
public double dx(double t)
-
ddx
public double ddx(double t)
-
getStart
public double getStart()
Returns the start rotation of the interpolator- Returns:
- The start rotation of the interpolator
-
getEnd
public double getEnd()
Returns the end rotation of the interpolator- Returns:
- The end rotation of the interpolator
-
duration
public double duration()
-
-