Nome

ST_RotateY — Rotates a geometry about the Y axis.

Sinossi

geometry ST_RotateY(geometry geomA, float rotRadians);

Descrizione

Rotates a geometry geomA - rotRadians about the y axis.

[Nota]

ST_RotateY(geomA, rotRadians) is short-hand for ST_Affine(geomA, cos(rotRadians), 0, sin(rotRadians), 0, 1, 0, -sin(rotRadians), 0, cos(rotRadians), 0, 0, 0).

Availability: 1.1.2. Name changed from RotateY to ST_RotateY in 1.2.2

Migliorato: Nella 2.0.0 è stato introdotto il supporto per le superfici poliedriche, i triangoli e i TIN.

Questa funzione supporta le Polyhedral Surface.

Questa funzione supporta il 3d e non distrugge gli z-index.

Questa funzione supporta i Triangoli e le Triangulated Irregular Network Surfaces (TIN).

Esempi

This example rotates a line 90 degrees around the Y axis.

Code
SELECT ST_RotateY('LINESTRING(1 2 3,1 1 1)', pi()/2);
Output
LINESTRING(3 2 -1,1 1 -1)
Figure
Geometry figure for visual-st-rotatey-01

Si veda anche

ST_Affine, ST_RotateX, ST_RotateZ