PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ vector_scale()

static void vector_scale ( POINT3D n,
double  scale 

Scale a vector out by a factor.

Definition at line 437 of file lwgeodetic.c.

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

Referenced by edge_distance_to_point(), and edge_intersects().

438 {
439  n->x *= scale;
440  n->y *= scale;
441  n->z *= scale;
442  return;
443 }
double y
Definition: liblwgeom.h:324
double x
Definition: liblwgeom.h:324
double z
Definition: liblwgeom.h:324
Here is the caller graph for this function: