|
MATSIM
|
Static Public Member Functions | |
| static Tuple< Point2D.Double, Point2D.Double > | scaleVector (final Point2D.Double start, final Point2D.Double end, double scaleFactor) |
| static Tuple< Point2D.Double, Point2D.Double > | scaleVectorStart (final Point2D.Double start, final Point2D.Double end, double scaleFactor) |
| static Tuple< Point2D.Double, Point2D.Double > | scaleVectorEnd (final Point2D.Double start, final Point2D.Double end, double scaleFactor) |
Static Private Member Functions | |
| static Tuple< Point2D.Double, Point2D.Double > | calculateScaledVector (final Point2D.Double start, final Point2D.Double end, double scaleFactor) |
Util class containing stateless vecmath utility methods frequently needed for visualization code.
Definition at line 32 of file VectorUtils.java.
|
static |
Scales a vector given by start and end point by a factor. Changes both - start and end coordinate of the vector.
| scaleFactor | a scale factor in [0..1] |
Definition at line 40 of file VectorUtils.java.
References org.matsim.vis.vecmathutils.VectorUtils.calculateScaledVector().
Referenced by org.matsim.lanes.VisLaneModelBuilder.createVisLinkLanes().

|
static |
Scales a vector given by start and end point by a factor. Changes only the start coordinate of the vector.
| scaleFactor | a scale factor in [0..1] |
Definition at line 54 of file VectorUtils.java.
References org.matsim.vis.vecmathutils.VectorUtils.calculateScaledVector().

|
static |
Scales a vector given by start and end point by a factor. Changes only the end coordinate of the vector.
| scaleFactor | a scale factor in [0..1] |
Definition at line 69 of file VectorUtils.java.
References org.matsim.vis.vecmathutils.VectorUtils.calculateScaledVector().

|
staticprivate |
Definition at line 77 of file VectorUtils.java.
Referenced by org.matsim.vis.vecmathutils.VectorUtils.scaleVector(), org.matsim.vis.vecmathutils.VectorUtils.scaleVectorEnd(), and org.matsim.vis.vecmathutils.VectorUtils.scaleVectorStart().
1.8.13