Package | away3d.core.draw |
Class | public final class ScreenVertex |
Property | Defined by | ||
---|---|---|---|
clipX : Number
The x position of the vertex in clip space
| ScreenVertex | ||
clipY : Number
The y position of the vertex in clip space
| ScreenVertex | ||
clipZ : Number
The z position of the vertex in clip space
| ScreenVertex | ||
num : Number
A number containing user defined properties.
| ScreenVertex | ||
viewTimer : int | ScreenVertex | ||
visible : Boolean
Indicates whether the vertex is visible after projection.
| ScreenVertex | ||
vx : Number
The view x position of the vertex in the view.
| ScreenVertex | ||
vy : Number
The view y position of the vertex in the view.
| ScreenVertex | ||
x : Number
The screen x position of the vertex in the view.
| ScreenVertex | ||
y : Number
The screen y position of the vertex in the view.
| ScreenVertex | ||
z : Number
The screen z position of the vertex in the view.
| ScreenVertex |
Method | Defined by | ||
---|---|---|---|
ScreenVertex
(x:Number = 0, y:Number = 0, z:Number = 0)
Creates a new
PrimitiveQuadrantTreeNode object. | ScreenVertex | ||
Converts a screen vertex back to a vertex object.
| ScreenVertex | ||
Calculates the distance between two screen vertex objects.
| ScreenVertex | ||
Calculates the squared distance between two screen vertex objects.
| ScreenVertex | ||
Calculates affine distortion present at the midpoint between two screen vertex objects.
| ScreenVertex | ||
[static]
Returns the median screen vertex between the two given screen vertex objects.
| ScreenVertex | ||
toString():String
Used to trace the values of a vertex.
| ScreenVertex | ||
[static]
Returns a screen vertex with values given by a weighted mean calculation.
| ScreenVertex |
clipX | property |
public var clipX:Number
The x position of the vertex in clip space
clipY | property |
public var clipY:Number
The y position of the vertex in clip space
clipZ | property |
public var clipZ:Number
The z position of the vertex in clip space
num | property |
public var num:Number
A number containing user defined properties.
viewTimer | property |
public var viewTimer:int
visible | property |
public var visible:Boolean
Indicates whether the vertex is visible after projection.
vx | property |
public var vx:Number
The view x position of the vertex in the view.
vy | property |
public var vy:Number
The view y position of the vertex in the view.
x | property |
public var x:Number
The screen x position of the vertex in the view.
y | property |
public var y:Number
The screen y position of the vertex in the view.
z | property |
public var z:Number
The screen z position of the vertex in the view.
ScreenVertex | () | constructor |
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.
|
deperspective | () | method |
public function deperspective(focus:Number):Vertex
Converts a screen vertex back to a vertex object.
Parametersfocus:Number — The focus value to use for deperspective calulations.
|
Vertex —
The deperspectived vertex object.
|
distance | () | method |
public function distance(b:ScreenVertex):Number
Calculates the distance between two screen vertex objects.
Parametersb:ScreenVertex — The second screen vertex object to use for the calcation.
|
Number — The scalar value of the vector between this and the given screen vertex.
|
distanceSqr | () | method |
public function distanceSqr(b:ScreenVertex):Number
Calculates the squared distance between two screen vertex objects.
Parametersb:ScreenVertex — The screen vertex object to use for the calcation.
|
Number — The squared scalar value of the vector between this and the given scren vertex.
|
distortSqr | () | method |
public function distortSqr(b:ScreenVertex, focus:Number):Number
Calculates affine distortion present at the midpoint between two screen vertex objects.
Parametersb:ScreenVertex — The second screen vertex object to use for the calcation.
|
|
focus:Number — The focus value used for the distortion calulations.
|
Number — The scalar value of the vector between this and the given screen vertex.
|
median | () | method |
public static function median(a:ScreenVertex, b:ScreenVertex, focus:Number):ScreenVertex
Returns the median screen vertex between the two given screen vertex objects.
Parametersa: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.
|
ScreenVertex —
The resulting screen vertex.
|
toString | () | method |
public function toString():String
Used to trace the values of a vertex.
ReturnsString — A string representation of the vertex object.
|
weighted | () | method |
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.
Parametersa: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.
|
ScreenVertex —
The resulting screen vertex.
|