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
  
clone():UV
Duplicates the vertex properties to another Vertex object
UV
 Inherited
removeOnChange(listener:Function):void
ValueObject
  
toString():String
Used to trace the values of a uv object.
UV
Protected Methods
 MethodDefined by
 Inherited
notifyChange():void
ValueObject
Property detail
extraproperty
public var extra:Object

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

uproperty 
u:Number  [read-write]

Defines the horizontal corrdinate of the texture value.

Implementation
    public function get u():Number
    public function set u(value:Number):void
vproperty 
v:Number  [read-write]

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)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 Parameters
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 
public override function toString():String

Used to trace the values of a uv object.

Returns
String — A string representation of the uv object.
Wiki link
Click to go to the wiki page for 'away3d.core.base.UV'

Code examples

Comments