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 | ValueObject | ||
nurbData : Object | WeightedVertex | ||
parents : Vector | ValueObject | ||
position : Vector3D
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 | ||
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):Vector3D
Applies perspective distortion
| Vertex | ||
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
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)
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.
|