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
 Inheritedgeometry : Geometry
ValueObject
  mapping : Point
[read-only]
UV
 Inheritedparents : Vector
ValueObject
  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
  
clone():UV
Duplicates the vertex properties to another Vertex object
UV
  
toString():String
Used to trace the values of a uv object.
UV
Property detail
extraproperty
public var extra:Object

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

mappingproperty 
mapping:Point  [read-only]Implementation
    public function get mapping():Point
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