Packageaway3d.primitives.data
Classpublic class WeightedVertex
InheritanceWeightedVertex Inheritance Vertex Inheritance ValueObject Inheritance flash.events.EventDispatcher

A WeightedVertex that simply extends vertex with a w weight property. Properties x, y, z and w represent a 3d point in space with nurb weighting.

Public Properties
 PropertyDefined by
 Inheritedextra : Object
An object that contains user defined properties.
Vertex
 Inheritedgeometry : Geometry
Vertex
  nurbData : Object
WeightedVertex
 Inheritedparents : Array
Vertex
 Inheritedposition : Number3D
Represents the vertex position vector
Vertex
 InheritedskinVertex : SkinVertex
Vertex
  w : Number
WeightedVertex
 Inheritedx : Number
Defines the x coordinate of the vertex relative to the local coordinates of the parent mesh object.
Vertex
 Inheritedy : Number
Represents the y coordinate of the vertex relative to the local coordinates of the parent mesh object.
Vertex
 Inheritedz : Number
Represents the z coordinate of the vertex relative to the local coordinates of the parent mesh object.
Vertex
Public Methods
 MethodDefined by
  
WeightedVertex
(x:Number = 0, y:Number = 0, z:Number = 0, wVal:Number = 1)
Creates a new WeightedVertex object.
WeightedVertex
 Inherited
add(value:Number3D):void
Adjusts the position of the vertex object by Number3D.
Vertex
 Inherited
addOnChange(listener:Function):void
ValueObject
 Inherited
adjust(x:Number, y:Number, z:Number, k:Number = 1):void
Adjusts the position of the vertex object incrementally.
Vertex
 Inherited
Duplicates the vertex properties to another Vertex object
Vertex
 Inherited
distanceSqr(a:Vertex, b:Vertex):Number
[static] Get the middle-point of two vertices
Vertex
 Inherited
[static] private Returns the middle-point of two vertices
Vertex
 Inherited
perspective(focus:Number):ScreenVertex
Applies perspective distortion
Vertex
 Inherited
removeOnChange(listener:Function):void
ValueObject
 Inherited
reset():void
Reset the position of the vertex object by Number3D.
Vertex
 Inherited
setValue(x:Number, y:Number, z:Number):void
Sets the vertex coordinates
Vertex
 Inherited
toString():String
Used to trace the values of a vertex object.
Vertex
 Inherited
Vertex
 Inherited
weighted(a:Vertex, b:Vertex, aw:Number, bw:Number):Vertex
[static] Get the weighted average of two vertices
Vertex
Protected Methods
 MethodDefined by
 Inherited
notifyChange():void
ValueObject
Property detail
nurbDataproperty
public var nurbData:Object
wproperty 
public var w:Number
Constructor detail
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.
Init Parameters
Wiki link
Click to go to the wiki page for 'away3d.primitives.data.WeightedVertex'

Code examples

Comments