Package org.robwork.sdurw_trajectory
Class LinearInterpolator_dPtr
- java.lang.Object
-
- org.robwork.sdurw_trajectory.LinearInterpolator_dPtr
-
public class LinearInterpolator_dPtr extends java.lang.ObjectPtr 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_dCPtrcptr()doubleddx(double t)voiddelete()LinearInterpolator_dderef()The pointer stored in the object.doubleduration()doubledx(double t)booleanequals(LinearInterpolator_d p)static longgetCPtr(LinearInterpolator_dPtr obj)LinearInterpolator_dgetDeref()Member access operator.doublegetEnd()Returns the end position of the interpolatordoublegetStart()Returns the start position of the interpolatorbooleanisNull()checks if the pointer is nullbooleanisShared()check if this Ptr has shared ownership or none
ownershipdoublex(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()
-
-