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 : Array | Vertex | ||
position : Number3D
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 | ||
Adjusts the position of the vertex object by Number3D.
| 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 | ||
Applies perspective distortion
| Vertex | ||
removeOnChange(listener:Function):void
| ValueObject | ||
reset():void
Reset the position of the vertex object by Number3D.
| Vertex | ||
setValue(x:Number, y:Number, z:Number):void
Sets the vertex coordinates
| Vertex | ||
toString():String
Used to trace the values of a vertex object.
| Vertex | ||
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)
Parameters
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.
|