| Package | org.un.flex.utils.geom |
| Interface | public interface IVector |
| Implementors | ComplexVector |
IPoint.
For implementations where no information on the vector is available,
its constructor must set itself to 0.
| Property | Defined by | ||
|---|---|---|---|
| base : IPoint
Returns the base (point) of the vector.
| IVector | ||
| dir : IPoint
[read-only]
Returns the direction (point) of the vector.
| IVector | ||
| Method | Defined by | ||
|---|---|---|---|
|
clone():Object
Creates a deep copy of the vector.
| IVector | ||
|
scale(f:Number):void
Scales the vector with the specified factor.
| IVector | ||
|
Sets this vector to the given vector.
| IVector | ||
|
toString():String
Returns a String representation of the vector.
| IVector | ||
| base | property |
base:IPoint [read-write]Returns the base (point) of the vector.
Implementation public function get base():IPoint
public function set base(value:IPoint):void
| dir | property |
dir:IPoint [read-only]Returns the direction (point) of the vector.
Implementation public function get dir():IPoint
| clone | () | method |
public function clone():ObjectCreates a deep copy of the vector.
ReturnsObject — A deep copy of the vector.
|
| scale | () | method |
public function scale(f:Number):voidScales the vector with the specified factor. This changes the length of the vector, but the base (point) is unchanged.
Parametersf:Number — The scaling factor.
|
| setTo | () | method |
public function setTo(vector:IVector):voidSets this vector to the given vector. The specified vector must belong to the same model.
Parametersvector:IVector — The new vector.
|
| toString | () | method |
public function toString():StringReturns a String representation of the vector.
ReturnsString — A String in appropriate format.
|