Packageorg.papervision3d.core.math
Classpublic class NumberUV

The NumberUV class represents a value in a texture UV coordinate system. Properties u and v represent the horizontal and vertical texture axes respectively.



Public Properties
 PropertyDefined by
  u : Number
The horizontal coordinate value.
NumberUV
  v : Number
The vertical coordinate value.
NumberUV
  ZERO : NumberUV
[static][read-only] Returns a NumberUV object with u and v properties set to zero.
NumberUV
Public Methods
 MethodDefined by
  
NumberUV(u:Number = 0, v:Number = 0)
Creates a new NumberUV object whose coordinate values are specified by the u and v parameters.
NumberUV
  
Returns a new NumberUV object that is a clone of the original instance with the same UV values.
NumberUV
  
toString():String
Returns a string value representing the UV values in the specified NumberUV object.
NumberUV
Property detail
uproperty
public var u:Number

The horizontal coordinate value.

vproperty 
public var v:Number

The vertical coordinate value.

ZEROproperty 
ZERO:NumberUV  [read-only]

Returns a NumberUV object with u and v properties set to zero.

Implementation
    public static function get ZERO():NumberUV
Constructor detail
NumberUV()constructor
public function NumberUV(u:Number = 0, v:Number = 0)

Creates a new NumberUV object whose coordinate values are specified by the u and v parameters. If you call this constructor function without parameters, a NumberUV with u and v properties set to zero is created.

Parameters
u:Number (default = 0) — The horizontal coordinate value. The default value is zero.
 
v:Number (default = 0) — The vertical coordinate value. The default value is zero.
Method detail
clone()method
public function clone():NumberUV

Returns a new NumberUV object that is a clone of the original instance with the same UV values.

Returns
NumberUV — A new NumberUV instance with the same UV values as the original NumberUV instance.
toString()method 
public function toString():String

Returns a string value representing the UV values in the specified NumberUV object.

Returns
String — A string.