დასახელება

CG_RotateX — Rotates a geometry around the X-axis by a given angle.

სინოპსისი

geometry CG_RotateX(geometry geom, float8 angle);

აღწერა

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

Availability: 3.6.0 - requires SFCGAL >= 2.0.0

This method needs SFCGAL backend.

This function supports 3d and will not drop the z-index.

მაგალითები

Code
SELECT CG_RotateX('POINT(0 1 0)', pi()/2);
Output
POINT Z (0 6.123233995736766e-17 1)
Figure
Geometry figure for visual-cg-rotatex-01

ასევე იხილეთ

CG_RotateY, CG_RotateZ, CG_3DRotate