Package | away3d.primitives.data |
Class | public class WeightedVertex |
Inheritance | WeightedVertex Vertex ValueObject flash.events.EventDispatcher |
Property | Defined By | ||
---|---|---|---|
extra : Object
An object that contains user defined properties. | Vertex | ||
geometry : Geometry | Vertex | ||
nurbData : Object | WeightedVertex | ||
parents : Vector.<Element> | Vertex | ||
position : Vector3D [read-only]
Represents the vertex position vector
| Vertex | ||
skinVertex : SkinVertex | Vertex | ||
w : Number | WeightedVertex | ||
x : Number
Defines the x coordinate of the vertex relative to the local coordinates of the parent mesh object. | Vertex | ||
y : Number
Represents the y coordinate of the vertex relative to the local coordinates of the parent mesh object. | Vertex | ||
z : Number
Represents the z coordinate of the vertex relative to the local coordinates of the parent mesh object. | Vertex |
Method | Defined By | ||
---|---|---|---|
WeightedVertex(x:Number = 0, y:Number = 0, z:Number = 0, wVal:Number = 1)
Creates a new WeightedVertex object. | WeightedVertex | ||
add(value:Vector3D):void
Adjusts the position of the vertex object by Vector3D. | Vertex | ||
addOnChange(listener:Function):void | ValueObject | ||
adjust(x:Number, y:Number, z:Number, k:Number = 1):void
Adjusts the position of the vertex object incrementally. | Vertex | ||
Duplicates the vertex properties to another Vertex object
| Vertex | ||
[static]
Get the middle-point of two vertices
| Vertex | ||
[static]
private Returns the middle-point of two vertices
| Vertex | ||
perspective(focus:Number):ScreenVertex
Applies perspective distortion
| Vertex | ||
removeOnChange(listener:Function):void | ValueObject | ||
reset():void
Reset the position of the vertex object by Vector3D. | Vertex | ||
setValue(x:Number, y:Number, z:Number):void
Sets the vertex coordinates
| Vertex | ||
toString():String [override]
Used to trace the values of a vertex object. | Vertex | ||
[static]
Get the weighted average of two vertices
| Vertex |
nurbData | property |
public var nurbData:Object
w | property |
public var w:Number
WeightedVertex | () | Constructor |
public function WeightedVertex(x:Number = 0, y:Number = 0, z:Number = 0, wVal:Number = 1)
Creates a new WeightedVertex
object.
x:Number (default = 0 ) — [optional] The local x position of the vertex. Defaults to 0.
| |
y:Number (default = 0 ) — [optional] The local y position of the vertex. Defaults to 0.
| |
z:Number (default = 0 ) — [optional] The local z position of the vertex. Defaults to 0.
| |
wVal:Number (default = 1 ) — [optional] The local w weight of the vertex. Defaults to 1.
|