Properties:
Name | Type | Description |
---|---|---|
list |
Array.<Array.<number>> | List of each offset point, default is an empty |
texture |
THREE.Material | The generated texture, default is null |
beginID |
number | The begining texture ID |
beginPoint |
Array.<number> | The begining texture point offset |
endID |
number | The ending texture ID |
endPoint |
Array.<number> | The ending texture point offset array |
Methods
-
Set the begining texture
Name Type Description id
number The begining texture ID point
Array.<number> The begining texture point offset -
Set the ending texture
Name Type Description id
number The ending texture ID point
Array.<number> The ending texture point offset -
Check which point is on top
Name Type Description rect
Array.<number> point
Array.<number> Returns:
Type Description boolean -
Check which point is on bot
Name Type Description rect
Array.<number> point
Array.<number> Returns:
Type Description boolean -
Check if a couple (id, rect) is inside this texture
Name Type Description id
number rect
Array.<number> Returns:
Type Description boolean -
Add a couple (id, point) inside the list
Name Type Description id
number point
Array.<number> -
Get the offset of couple (id, rect)
Name Type Description id
number rect
Array.<number> Returns:
Type Description number