representation of a 3d vertex resolved to the view.
public var num:Number
A numbder containing user defined properties.
public var visible:Boolean
Indicates whether the vertex is visible after projection.
public var x:Number
The x position of the vertex in the view.
public var y:Number
The y position of the vertex in the view.
public var z:Number
The z position of the vertex in the view.
public function ScreenVertex(x:Number = 0, y:Number = 0, z:Number = 0)
Parameters
| x:Number (default = 0 ) — [optional] The x position of the vertex in the view. Defaults to 0.
|
|
| y:Number (default = 0 ) — [optional] The y position of the vertex in the view. Defaults to 0.
|
|
| z:Number (default = 0 ) — [optional] The z position of the vertex in the view. Defaults to 0.
|
####INIT####
public function deperspective(focus:Number):Vertex
Converts a screen vertex back to a vertex object.
Parameters
| focus:Number — The focus value to use for deperspective calulations.
|
Returns
| Vertex —
The deperspectived vertex object.
|
public function distance(b:ScreenVertex):Number
Calculates the distance between two screen vertex objects.
Parameters
| b:ScreenVertex — The second screen vertex object to use for the calcation.
|
Returns
| Number — The scalar value of the vector between this and the given screen vertex.
|
public function distanceSqr(b:ScreenVertex):Number
Calculates the squared distance between two screen vertex objects.
Parameters
| b:ScreenVertex — The screen vertex object to use for the calcation.
|
Returns
| Number — The squared scalar value of the vector between this and the given scren vertex.
|
public function distortSqr(b:ScreenVertex, focus:Number):Number
Calculates affine distortion present at the midpoint between two screen vertex objects.
Parameters
| b:ScreenVertex — The second screen vertex object to use for the calcation.
|
|
| focus:Number — The focus value used for the distortion calulations.
|
Returns
| Number — The scalar value of the vector between this and the given screen vertex.
|
public static function median(a:ScreenVertex, b:ScreenVertex, focus:Number):ScreenVertex
Returns the median screen vertex between the two given screen vertex objects.
Parameters
| a:ScreenVertex — The first screen vertex to use for the calculation.
|
|
| b:ScreenVertex — The second screen vertex to use for the calculation.
|
|
| focus:Number — The focus value used for the median calulations.
|
Returns
public function toString():String
Used to trace the values of a vertex.
Returns
| String — A string representation of the vertex object.
|
public static function weighted(a:ScreenVertex, b:ScreenVertex, aw:Number, bw:Number, focus:Number):ScreenVertex
Returns a screen vertex with values given by a weighted mean calculation.
Parameters
| a:ScreenVertex — The first screen vertex to use for the calculation.
|
|
| b:ScreenVertex — The second screen vertex to use for the calculation.
|
|
| aw:Number — The first screen vertex weighting.
|
|
| bw:Number — The second screen vertex weighting.
|
|
| focus:Number — The focus value used for the weighting calulations.
|
Returns
Click to go to the wiki page for ####WIKI####