Package org.robwork.sdurw_trajectory
Class LinearInterpolator_dCPtr
- java.lang.Object
-
- org.robwork.sdurw_trajectory.LinearInterpolator_dCPtr
-
public class LinearInterpolator_dCPtr extends java.lang.Object
Ptr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description LinearInterpolator_dCPtr()
Default constructor yielding a NULL-pointer.LinearInterpolator_dCPtr(long cPtr, boolean cMemoryOwn)
LinearInterpolator_dCPtr(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.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_dCPtr 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_dCPtr
public LinearInterpolator_dCPtr(long cPtr, boolean cMemoryOwn)
-
LinearInterpolator_dCPtr
public LinearInterpolator_dCPtr()
Default constructor yielding a NULL-pointer.
-
LinearInterpolator_dCPtr
public LinearInterpolator_dCPtr(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_dCPtr 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
-
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()
-
-