| Package | sandy.core.data |
| Class | public final class UVCoord |
The UVCoord represents the position of a vertex on the Bitmap used to dress the polygon.
It is the 2D texture coordinates, used in the BitmapMaterial and VideoMaterial.
| Property | Defined by | ||
|---|---|---|---|
| u : Number
The v coordinate.
| UVCoord | ||
| v : Number
The u coordinate.
| UVCoord | ||
| Method | Defined by | ||
|---|---|---|---|
|
UVCoord(p_nU:Number = 0, p_nV:Number = 0)
Creates a new UV coordinate.
| UVCoord | ||
|
Add the UVCoord passed as parameter with the current UVCoord.
| UVCoord | ||
|
Return a clone of this UVCoord.
| UVCoord | ||
|
Realize a copy of the UVCoord object passed in parameter to the local object.
| UVCoord | ||
|
length():Number
| UVCoord | ||
|
normalize():void
| UVCoord | ||
|
scale(p_nFactor:Number):void
Scale the texture coords values by a factor.
| UVCoord | ||
|
Substract the UVCoord passed as parameter to the current UVCoord.
| UVCoord | ||
|
toString():String
Returns a string representing this UVCoord.
| UVCoord | ||
| u | property |
public var u:NumberThe v coordinate.
| v | property |
public var v:NumberThe u coordinate.
| UVCoord | () | constructor |
public function UVCoord(p_nU:Number = 0, p_nV:Number = 0)Creates a new UV coordinate.
Parametersp_nU:Number (default = 0) — Number the x texture position in the bitmap
|
|
p_nV:Number (default = 0) — Number the y texture position in the bitmap.
|
| add | () | method |
public function add(p_oUV:UVCoord):voidAdd the UVCoord passed as parameter with the current UVCoord.
Parametersp_oUV:UVCoord — The UVCoord to add
|
| clone | () | method |
| copy | () | method |
public function copy(p_oUV:UVCoord):voidRealize a copy of the UVCoord object passed in parameter to the local object.
Parametersp_oUV:UVCoord |
| length | () | method |
public function length():Number
Returns
Number |
| normalize | () | method |
public function normalize():void
| scale | () | method |
public function scale(p_nFactor:Number):voidScale the texture coords values by a factor.
Parametersp_nFactor:Number — The factor
|
| sub | () | method |
public function sub(p_oUV:UVCoord):voidSubstract the UVCoord passed as parameter to the current UVCoord.
Parametersp_oUV:UVCoord — The UVCoord to substract
|
| toString | () | method |
public function toString():StringReturns a string representing this UVCoord.
ReturnsString — The string representation
|