| 8 | * @category Objects > 3D Objects |
| 9 | */ |
| 10 | export interface Base3DHandler { |
| 11 | /** |
| 12 | * Set the object position on the Z axis. |
| 13 | */ |
| 14 | setZ(z: float): void; |
| 15 | |
| 16 | /** |
| 17 | * Get the object position on the Z axis. |
| 18 | */ |
| 19 | getZ(): float; |
| 20 | |
| 21 | /** |
| 22 | * Return the Z position of the object center, **relative to the scene origin**. |
| 23 | */ |
| 24 | getCenterZInScene(): float; |
| 25 | |
| 26 | /** |
| 27 | * Change the object center Z position in the scene. |
| 28 | * @param z The new Z position of the center in the scene. |
| 29 | */ |
| 30 | setCenterZInScene(z: float): void; |
| 31 | |
| 32 | /** |
| 33 | * Set the object rotation on the X axis. |
| 34 | * |
| 35 | * This is an Euler angle. Objects use the `ZYX` order. |
| 36 | * |
| 37 | * @param angle the rotation angle on the X axis in degree |
| 38 | */ |
| 39 | setRotationX(angle: float): void; |
| 40 | |
| 41 | /** |
| 42 | * Set the object rotation on the Y axis. |
| 43 | * |
| 44 | * This is an Euler angle. Objects use the `ZYX` order. |
| 45 | * |
| 46 | * @param angle the rotation angle on the Y axis in degree |
| 47 | */ |
| 48 | setRotationY(angle: float): void; |
| 49 | |
| 50 | /** |
| 51 | * Get the object rotation on the X axis in degree. |
| 52 | * |
| 53 | * This is an Euler angle. Objects use the `ZYX` order. |
| 54 | */ |
| 55 | getRotationX(): float; |
| 56 | |
| 57 | /** |
| 58 | * Get the object rotation on the Y axis in degree. |
| 59 | * |
| 60 | * This is an Euler angle. Objects use the `ZYX` order. |
| 61 | */ |
| 62 | getRotationY(): float; |
| 63 | |
| 64 | /** |
| 65 | * Turn the object around the scene X axis at its center. |
| 66 | * @param deltaAngle the rotation angle in degree |
| 67 | */ |
no outgoing calls
no test coverage detected