Translates a scene model along the x, y, and z axes by specified distances.
Syntax
scene ST_Translate(scene sc, float8 x, float8 y, float8 z);Parameters
| Parameter | Description |
|---|---|
sc | The scene object to translate. |
x | The translation distance along the x-axis. |
y | The translation distance along the y-axis. |
z | The translation distance along the z-axis. |
Description
ST_Translate applies a spatial displacement to a scene model, shifting it by the specified distances along each axis.
Examples
Translate all scene objects in table t by 10 units along each axis:
SELECT ST_Translate(scene, 10, 10, 10) FROM t;
------
0x...该文章对您有帮助吗?