Make your own free website on Tripod.com

Contents Turbed: A Turbulent Behavior Development System News
In file gluo.h:

void gluoPlaneEq( double x1, double y1, double z1, double x2, double y2, double z2, double x3, double y3, double z3, double *nx, double *ny, double *nz, double *pd)

Given three points on a plane it returns the plane equation Ax+By+Cz+D=0 constants: A,B,C,D

Documentation

Given three points on a plane it returns the plane equation Ax+By+Cz+D=0 constants: A,B,C,D.

The points are assumed to be given in clockwise order.

Parameters description:

x1,y1,z1 point in plane
x2,y2,z2 point in plane
x3,y3,z3 point in plane
Nx,Ny,Nz Outwards unit Normal to the plane corresponds to A,B,C
pd Distance of the plane to the origin, corresponds to D

Alphabetic index HTML hierarchy of classes or Java


This software was originally written by Daniel Barrero at the IRIT's Equipe Synthèse d'Images
contact: barrero@irit.fr

Generated by doc++