Name

CG_RotateY — Rotates a geometry around the Y-axis by a given angle.

Synopsis

geometry CG_RotateY(geometry geom, float8 angle);

Description

Rotates the input geometry geom by angle radians around the Y-axis passing.

Availability: 3.6.0 - requires SFCGAL >= 2.0.0

Cette méthode nécessite le backend SFCGAL.

Cette fonction prend en charge la 3D et ne supprime pas l'indice z.

Exemples

SELECT ST_AsText(CG_RotateY('POINT(1 0 0)', pi()/2));
-- Result: POINT(0 0 -1)