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 idnumber The begining texture ID pointArray.<number> The begining texture point offset -
Set the ending texture
Name Type Description idnumber The ending texture ID pointArray.<number> The ending texture point offset -
Check which point is on top
Name Type Description rectArray.<number> pointArray.<number> Returns:
Type Description boolean -
Check which point is on bot
Name Type Description rectArray.<number> pointArray.<number> Returns:
Type Description boolean -
Check if a couple (id, rect) is inside this texture
Name Type Description idnumber rectArray.<number> Returns:
Type Description boolean -
Add a couple (id, point) inside the list
Name Type Description idnumber pointArray.<number> -
Get the offset of couple (id, rect)
Name Type Description idnumber rectArray.<number> Returns:
Type Description number