Package org.robwork.sdurw_trajectory
Class TrajectoryIteratorRotation3DCPtr
- java.lang.Object
-
- org.robwork.sdurw_trajectory.TrajectoryIteratorRotation3DCPtr
-
public class TrajectoryIteratorRotation3DCPtr extends java.lang.Object
Ptr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description TrajectoryIteratorRotation3DCPtr()
Default constructor yielding a NULL-pointer.TrajectoryIteratorRotation3DCPtr(long cPtr, boolean cMemoryOwn)
TrajectoryIteratorRotation3DCPtr(TrajectoryIteratorRotation3D 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 TrajectoryIteratorRotation3D
__ref__()
Dereferencing operator.Rotation3D
ddx()
Extracts a point of the double derivative of the trajectory at the
current position in the trajectory
void
delete()
TrajectoryIteratorRotation3D
deref()
The pointer stored in the object.Rotation3D
dx()
Extracts a point of the derivative of the trajectory
at the current position in the trajectory
boolean
equals(TrajectoryIteratorRotation3D p)
static long
getCPtr(TrajectoryIteratorRotation3DCPtr obj)
TrajectoryIteratorRotation3D
getDeref()
Member access operator.double
getTime()
Returns the current position (time) of the iteratorboolean
isBegin()
Test if the beginning of the trajectory is reached.
boolean
isEnd()
Test if the end of the trajectory is reached.
boolean
isNull()
checks if the pointer is nullboolean
isShared()
check if this Ptr has shared ownership or none
ownershipRotation3D
point()
Extracts a point at the current position in the trajectory.
Rotation3D
x()
Extracts a point at the current position in the trajectory.
-
-
-
Constructor Detail
-
TrajectoryIteratorRotation3DCPtr
public TrajectoryIteratorRotation3DCPtr(long cPtr, boolean cMemoryOwn)
-
TrajectoryIteratorRotation3DCPtr
public TrajectoryIteratorRotation3DCPtr()
Default constructor yielding a NULL-pointer.
-
TrajectoryIteratorRotation3DCPtr
public TrajectoryIteratorRotation3DCPtr(TrajectoryIteratorRotation3D ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(TrajectoryIteratorRotation3DCPtr obj)
-
delete
public void delete()
-
deref
public TrajectoryIteratorRotation3D deref()
The pointer stored in the object.
-
__ref__
public TrajectoryIteratorRotation3D __ref__()
Dereferencing operator.
-
getDeref
public TrajectoryIteratorRotation3D getDeref()
Member access operator.
-
equals
public boolean equals(TrajectoryIteratorRotation3D 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 Rotation3D point()
Extracts a point at the current position in the trajectory.
- Returns:
- the point at the current position in the trajectory.
-
x
public Rotation3D x()
Extracts a point at the current position in the trajectory.
- Returns:
- the point at the current position in the trajectory.
-
dx
public Rotation3D 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 Rotation3D 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.
-
-