| Package | org.un.flex.utils.geom |
| Class | public class ComplexVector |
| Implements | IVector |
IVector
for the complex plane, i.e. the base point is a complex number.
Since the set of complex numbers is a real vector space,
the direction is a complex number as well.
| Property | Defined by | ||
|---|---|---|---|
| base : IPoint
Returns the base (point) of the vector.
| ComplexVector | ||
| dir : IPoint
[read-only]
Returns the direction (point) of the vector.
| ComplexVector | ||
| Method | Defined by | ||
|---|---|---|---|
|
Constructor of ComplexVector
| ComplexVector | ||
|
clone():Object
Creates a deep copy of the vector.
| ComplexVector | ||
|
scale(r:Number):void
Scales the vector with the specified factor.
| ComplexVector | ||
|
Sets this vector to the given vector.
| ComplexVector | ||
|
toString():String
Returns a String representation of the vector.
| ComplexVector | ||
| 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
| ComplexVector | () | constructor |
public function ComplexVector(base:ComplexNumber = null, dir:ComplexNumber = null)Constructor of ComplexVector
Parametersbase:ComplexNumber (default = null) — The base of the vector
|
|
dir:ComplexNumber (default = null) — The direction of the vector
|
| clone | () | method |
public function clone():ObjectCreates a deep copy of the vector.
ReturnsObject — A deep copy of the vector.
|
| scale | () | method |
public function scale(r:Number):voidScales the vector with the specified factor. This changes the length of the vector, but the base (point) is unchanged.
Parametersr:Number — The scaling factor.
|
| setTo | () | method |
public function setTo(v:IVector):voidSets this vector to the given vector. The specified vector must belong to the same model.
Parametersv:IVector — The new vector.
|
| toString | () | method |
public function toString():StringReturns a String representation of the vector.
ReturnsString — A String in appropriate format.
|