public abstract class StationaryObject extends WorldObject
potentialVector
Constructor and Description |
---|
StationaryObject(double[] position,
double standoff)
Constructor
|
StationaryObject(double x,
double y,
double standoff)
Constructor
|
StationaryObject(Point position,
double standoff)
Constructor
|
Modifier and Type | Method and Description |
---|---|
abstract void |
getVisiblePoints(double[] startPt,
ArrayList<double[]> result)
Develops a list of corner points or tangent points that are potentially
visible from an input point--does include "standoff" in calculation
(does not test whether other objects are in the way)
|
abstract String |
toMATLABString()
Generates a string representation of the Path object that can be used to plot the path in MATLAB
|
String |
toString()
Generates a string representation of the wall object
|
getDistance, getDistance, getDistance, getDistance, getDistance, getDistance, getDistance, getDistanceOfConcern, getPosit, getPotentialForce, getPotentialForce, getPotentialForce, getPotentialForceDirection, getPotentialForceDirection, getPotentialForceDirection, getPotentialVector, getPotentialVector, getPotentialVector, getStandoff, getXPosit, getYPosit, setPosit, setPosit, setPosit, setStandoff
public StationaryObject(double x, double y, double standoff)
x
- north/south Cartesian coordinate of the object's location in the worldy
- east/west Cartesian coordinate of the object's location in the worldstandoff
- required distance (meters) that the vehicle must remain clear from this objectpublic StationaryObject(double[] position, double standoff)
position
- 2-element array with the Cartesian coordinates of the object's location in the worldstandoff
- required distance (meters) that the vehicle must remain clear from this objectpublic StationaryObject(Point position, double standoff)
position
- 2-element array with the Cartesian coordinates of the object's location in the worldstandoff
- required distance (meters) that the vehicle must remain clear from this objectpublic abstract void getVisiblePoints(double[] startPt, ArrayList<double[]> result)
startPt
- Cartesian coordinates of the point being testedresult
- container into which the computed points (double[2]) that
can be reached from the test point without crossing the
objects will be addedpublic abstract String toMATLABString()
public String toString()
toString
in class WorldObject