Package org.robwork.sdurw_trajectory
Class TrajectoryIteratorVector2DCPtr
- java.lang.Object
-
- org.robwork.sdurw_trajectory.TrajectoryIteratorVector2DCPtr
-
public class TrajectoryIteratorVector2DCPtr extends java.lang.ObjectPtr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description TrajectoryIteratorVector2DCPtr()Default constructor yielding a NULL-pointer.TrajectoryIteratorVector2DCPtr(long cPtr, boolean cMemoryOwn)TrajectoryIteratorVector2DCPtr(TrajectoryIteratorVector2D 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 TrajectoryIteratorVector2D__ref__()Dereferencing operator.Vector2Dddx()Extracts a point of the double derivative of the trajectory at the
current position in the trajectory
voiddelete()TrajectoryIteratorVector2Dderef()The pointer stored in the object.Vector2Ddx()Extracts a point of the derivative of the trajectory
at the current position in the trajectory
booleanequals(TrajectoryIteratorVector2D p)static longgetCPtr(TrajectoryIteratorVector2DCPtr obj)TrajectoryIteratorVector2DgetDeref()Member access operator.doublegetTime()Returns the current position (time) of the iteratorbooleanisBegin()Test if the beginning of the trajectory is reached.
booleanisEnd()Test if the end of the trajectory is reached.
booleanisNull()checks if the pointer is nullbooleanisShared()check if this Ptr has shared ownership or none
ownershipVector2Dpoint()Extracts a point at the current position in the trajectory.
Vector2Dx()Extracts a point at the current position in the trajectory.
-
-
-
Constructor Detail
-
TrajectoryIteratorVector2DCPtr
public TrajectoryIteratorVector2DCPtr(long cPtr, boolean cMemoryOwn)
-
TrajectoryIteratorVector2DCPtr
public TrajectoryIteratorVector2DCPtr()
Default constructor yielding a NULL-pointer.
-
TrajectoryIteratorVector2DCPtr
public TrajectoryIteratorVector2DCPtr(TrajectoryIteratorVector2D ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(TrajectoryIteratorVector2DCPtr obj)
-
delete
public void delete()
-
deref
public TrajectoryIteratorVector2D deref()
The pointer stored in the object.
-
__ref__
public TrajectoryIteratorVector2D __ref__()
Dereferencing operator.
-
getDeref
public TrajectoryIteratorVector2D getDeref()
Member access operator.
-
equals
public boolean equals(TrajectoryIteratorVector2D 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
-
getTime
public double getTime()
Returns the current position (time) of the iterator- Returns:
- The current time.
-
isEnd
public boolean isEnd()
Test if the end of the trajectory is reached.
- Returns:
- true if the iterator has reached the end of the trajectory false
otherwise.
-
isBegin
public boolean isBegin()
Test if the beginning of the trajectory is reached.
- Returns:
- true if the iterator has reached the beginning of the trajectory
false otherwise.
-
point
public Vector2D point()
Extracts a point at the current position in the trajectory.
- Returns:
- the point at the current position in the trajectory.
-
x
public Vector2D x()
Extracts a point at the current position in the trajectory.
- Returns:
- the point at the current position in the trajectory.
-
dx
public Vector2D dx()
Extracts a point of the derivative of the trajectory
at the current position in the trajectory
- Returns:
- the derived point at the current position in the trajectory.
-
ddx
public Vector2D ddx()
Extracts a point of the double derivative of the trajectory at the
current position in the trajectory
- Returns:
- the double derived point at the current position in the trajectory.
-
-