rp1.rossum
Class RsMotionLine

java.lang.Object
  extended by rp1.rossum.RsComponent
      extended by rp1.rossum.RsMotion
          extended by rp1.rossum.RsMotionLine
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class RsMotionLine
extends RsMotion

The class used for modeling trajectories that follow a linear path.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class rp1.rossum.RsMotion
collision, collisionTime, significantDeltaT, time, time0, time1, timeTotal, transform, transform0
 
Constructor Summary
RsMotionLine(RsMotion start, double startTime, double duration, RsVector vector, double displacement)
           
 
Method Summary
 RsMotionDepiction getMotionDepictionAtBodyPoint(double xBodyPoint, double yBodyPoint)
           
 double getVelocity()
           
 boolean processCollision(RsSegment[] aList, int aCount, RsSegment[] bList, int bCount)
           
 void stopMotionAtTime(double simTime)
           
 void truncateForCollision()
           
 
Methods inherited from class rp1.rossum.RsMotion
getContinuityID, getContinuitySeriesID, getNewContinuityID, getOrientation, getPosition, getTime, getTurnRate, setTime, setTimeForward
 
Methods inherited from class rp1.rossum.RsComponent
clone
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RsMotionLine

public RsMotionLine(RsMotion start,
                    double startTime,
                    double duration,
                    RsVector vector,
                    double displacement)
Method Detail

getVelocity

public double getVelocity()
Overrides:
getVelocity in class RsMotion

getMotionDepictionAtBodyPoint

public RsMotionDepiction getMotionDepictionAtBodyPoint(double xBodyPoint,
                                                       double yBodyPoint)
Specified by:
getMotionDepictionAtBodyPoint in class RsMotion

processCollision

public boolean processCollision(RsSegment[] aList,
                                int aCount,
                                RsSegment[] bList,
                                int bCount)
Overrides:
processCollision in class RsMotion

truncateForCollision

public void truncateForCollision()
Overrides:
truncateForCollision in class RsMotion

stopMotionAtTime

public void stopMotionAtTime(double simTime)
Overrides:
stopMotionAtTime in class RsMotion