Packageaway3d.core.base
Classpublic class UV
InheritanceUV Inheritance ValueObject Inheritance flash.events.EventDispatcher

Texture coordinates value object. Properties u and v represent the horizontal and vertical texture axes.



Public Properties
 PropertyDefined By
  extra : Object
An optional untyped object that can contain used-defined properties.
UV
  u : Number
Defines the horizontal corrdinate of the texture value.
UV
  v : Number
Defines the vertical corrdinate of the texture value.
UV
Public Methods
 MethodDefined By
  
UV(u:Number = 0, v:Number = 0)
Creates a new UV object.
UV
 Inherited
addOnChange(listener:Function):void
ValueObject
  
Duplicates the vertex properties to another Vertex object
UV
 Inherited
removeOnChange(listener:Function):void
ValueObject
  
toString():String
[override] Used to trace the values of a uv object.
UV
Protected Methods
 MethodDefined By
 Inherited
ValueObject
Property Detail
extraproperty
public var extra:Object

An optional untyped object that can contain used-defined properties.

uproperty 
u:Number

Defines the horizontal corrdinate of the texture value.


Implementation
    public function get u():Number
    public function set u(value:Number):void
vproperty 
v:Number

Defines the vertical corrdinate of the texture value.


Implementation
    public function get v():Number
    public function set v(value:Number):void
Constructor Detail
UV()Constructor
public function UV(u:Number = 0, v:Number = 0)

Creates a new UV object.

Parameters
u:Number (default = 0) — [optional] The horizontal corrdinate of the texture value. Defaults to 0.
 
v:Number (default = 0) — [optional] The vertical corrdinate of the texture value. Defaults to 0.
####INIT####
Method Detail
clone()method
public function clone():UV

Duplicates the vertex properties to another Vertex object

Returns
UV — The new vertex instance with duplicated properties applied
toString()method 
override public function toString():String

Used to trace the values of a uv object.

Returns
String — A string representation of the uv object.