Package org.robwork.sdurw_trajectory
Class LinearInterpolator_dCPtr
- java.lang.Object
-
- org.robwork.sdurw_trajectory.LinearInterpolator_dCPtr
-
public class LinearInterpolator_dCPtr extends java.lang.ObjectPtr 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.doubleddx(double t)voiddelete()LinearInterpolator_dderef()The pointer stored in the object.doubleduration()doubledx(double t)booleanequals(LinearInterpolator_d p)static longgetCPtr(LinearInterpolator_dCPtr 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_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()
-
-