Package org.robwork.sdurw_trajectory
Class LinearInterpolator_dPtr
- java.lang.Object
-
- org.robwork.sdurw_trajectory.LinearInterpolator_dPtr
-
public class LinearInterpolator_dPtr extends java.lang.Object
Ptr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description LinearInterpolator_dPtr()
Default constructor yielding a NULL-pointer.LinearInterpolator_dPtr(long cPtr, boolean cMemoryOwn)
LinearInterpolator_dPtr(LinearInterpolator_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 LinearInterpolator_d
__ref__()
Dereferencing operator.LinearInterpolator_dCPtr
cptr()
double
ddx(double t)
void
delete()
LinearInterpolator_d
deref()
The pointer stored in the object.double
duration()
double
dx(double t)
boolean
equals(LinearInterpolator_d p)
static long
getCPtr(LinearInterpolator_dPtr obj)
LinearInterpolator_d
getDeref()
Member access operator.double
getEnd()
Returns the end position of the interpolatordouble
getStart()
Returns the start position 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
-
LinearInterpolator_dPtr
public LinearInterpolator_dPtr(long cPtr, boolean cMemoryOwn)
-
LinearInterpolator_dPtr
public LinearInterpolator_dPtr()
Default constructor yielding a NULL-pointer.
-
LinearInterpolator_dPtr
public LinearInterpolator_dPtr(LinearInterpolator_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(LinearInterpolator_dPtr obj)
-
delete
public void delete()
-
deref
public LinearInterpolator_d deref()
The pointer stored in the object.
-
__ref__
public LinearInterpolator_d __ref__()
Dereferencing operator.
-
getDeref
public LinearInterpolator_d getDeref()
Member access operator.
-
equals
public boolean equals(LinearInterpolator_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 LinearInterpolator_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 position of the interpolator- Returns:
- The start position of the interpolator
-
getEnd
public double getEnd()
Returns the end position of the interpolator- Returns:
- The end position of the interpolator
-
duration
public double duration()
-
-