PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ vector_scale()

void vector_scale ( POINT3D n,
double  scale 
)

Scale a vector out by a factor.

Definition at line 487 of file lwgeodetic.c.

488 {
489  n->x *= scale;
490  n->y *= scale;
491  n->z *= scale;
492  return;
493 }
double z
Definition: liblwgeom.h:343
double x
Definition: liblwgeom.h:343
double y
Definition: liblwgeom.h:343

References POINT3D::x, POINT3D::y, and POINT3D::z.

Referenced by circ_tree_get_point_outside(), edge_distance_to_point(), edge_intersects(), and lwpoly_pt_outside_hack().

Here is the caller graph for this function: