GODPAPER | All Packages | All Classes | Index | Frames No Frames |
SpatialVector

Package | ptolemy.geom3D.core
Class | public class SpatialVector
Inheritance | SpatialVector flash.events.EventDispatcher

Vector defined by (i,j,k) rectangular reference fromTo(Point,Point) returns Vector push(Point,Vector) returns Point crossProduct(Vector,Vector,rightHanded flag) returns Vector add(Vector,Vector), subtract(Vector,Vector) and multiply(Vector,Vector) are transparent!

Public Properties

| Property | Defined By
--- | --- | ---
|  | i : Number | SpatialVector
|  | j : Number | SpatialVector
|  | k : Number | SpatialVector
|  | magnitude : Number | SpatialVector

Public Methods

| Method | Defined By
--- | --- | ---
|  | SpatialVector(i:Number = 0, j:Number = 0, k:Number = 0) | SpatialVector
|  | add(a:SpatialVector, b:SpatialVector):SpatialVector [static] | SpatialVector
|  | crossProduct(a:SpatialVector, b:SpatialVector, rightHanded:Boolean = true):SpatialVector [static] | SpatialVector
|  | dotProduct(a:SpatialVector, b:SpatialVector):Number [static] | SpatialVector
|  | fromTo(a:Point, b:Point):SpatialVector [static] | SpatialVector
|  | multiply(a:SpatialVector, n:Number):SpatialVector [static] | SpatialVector
|  | push(a:Point, by:SpatialVector):Point [static] | SpatialVector
|  | subtract(a:SpatialVector, b:SpatialVector):SpatialVector [static] | SpatialVector
|  | toString():String [override] | SpatialVector

Public Constants

| Constant | Defined By
--- | --- | ---
|  | changed : String = ChangedEvent [static] | SpatialVector

Property Detail

i | property

`i:Number`

Implementation
`public function get i():Number`
`public function set i(value:Number):void`

j | property |

`j:Number`

Implementation
`public function get j():Number`
`public function set j(value:Number):void`

k | property |

`k:Number`

Implementation
`public function get k():Number`
`public function set k(value:Number):void`

magnitude | property |

`magnitude:Number`

Implementation
`public function get magnitude():Number`
`public function set magnitude(value:Number):void`
Constructor Detail

SpatialVector | () | Constructor

`public function SpatialVector(i:Number = 0, j:Number = 0, k:Number = 0)`

Parameters

| `i:Number` (default = `0`)``
| `j:Number` (default = `0`)``
| `k:Number` (default = `0`)``

Method Detail

add | () | method

`public static function add(a:SpatialVector, b:SpatialVector):SpatialVector`

Parameters

| `a:SpatialVector`
| `b:SpatialVector`

Returns

| `SpatialVector`

crossProduct | () | method |

`public static function crossProduct(a:SpatialVector, b:SpatialVector, rightHanded:Boolean = true):SpatialVector`

Parameters

| `a:SpatialVector`
| `b:SpatialVector`
| `rightHanded:Boolean` (default = `true`)``

Returns

| `SpatialVector`

dotProduct | () | method |

`public static function dotProduct(a:SpatialVector, b:SpatialVector):Number`

Parameters

| `a:SpatialVector`
| `b:SpatialVector`

Returns

| `Number`

fromTo | () | method |

`public static function fromTo(a:Point, b:Point):SpatialVector`

Parameters

| `a:Point`
| `b:Point`

Returns

| `SpatialVector`

multiply | () | method |

`public static function multiply(a:SpatialVector, n:Number):SpatialVector`

Parameters

| `a:SpatialVector`
| `n:Number`

Returns

| `SpatialVector`

push | () | method |

`public static function push(a:Point, by:SpatialVector):Point`

Parameters

| `a:Point`
| `by:SpatialVector`

Returns

| `Point`

subtract | () | method |

`public static function subtract(a:SpatialVector, b:SpatialVector):SpatialVector`

Parameters

| `a:SpatialVector`
| `b:SpatialVector`

Returns

| `SpatialVector`

toString | () | method |

`override public function toString():String`

Returns

| `String`

Constant Detail

changed | Constant

`public static const changed:String = ChangedEvent`

Thu Jan 16 2014, 01:11 PM +08:00