ST_Translate

更新时间:
复制 MD 格式

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

ParameterDescription
scThe scene object to translate.
xThe translation distance along the x-axis.
yThe translation distance along the y-axis.
zThe 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...