bool   sgSpacMath::PlaneFromPoints(const SG_POINT& p1, const SG_POINT& p2, const SG_POINT& p3, SG_VECTOR& resPlaneNorm, double& resPlaneD)

 

Description:

Calculates a normal and a free coefficient in the plane equation by three points.

 

Arguments:

p1 - first point,

p2 - second point,

p3 - third point,

resPlaneNorm - normal to the resultant plane,

resPlaneD - free coefficient in the resultant plane equation

 

Returned value:

Returns false if the points are coinsided or lie on the same line, otherwise - true.

 

See also:

SG_POINT   SG_VECTOR