NAME

plane_from_lines_as_points - Will create a 4-vector representation of a plane from four coplanar points.

SYNOPSIS

#include "g/g_point_projection.h"

Example compile flags (system dependent):
  -DLINUX_X86_64 -DLINUX_X86_64_OPTERON  -DGNU_COMPILER 
   -I/home/kobus/include
   -L/home/kobus/misc/load/linux_x86_64_opteron -L/usr/lib/x86_64-linux-gnu
  -lKJB                               -lfftw3  -lgsl -lgslcblas -ljpeg  -lSVM -lstdc++                    -lpthread -lSLATEC -lg2c    -lacml -lacml_mv -lblas -lg2c      -lncursesw 


int plane_from_lines_as_points
(
	Vector **plane,
	const Vector *line_one_point_one,
	const Vector *line_one_point_two,
	const Vector *line_two_point_one,
	const Vector *line_two_point_two
);

PARAMETERS

Vector **plane
Pointer to the new plane.
const Vector *line_one_point_one
A point on a given line.
const Vector *line_one_point_two
A point on a given line.
const Vector *line_two_point_one
A point on a given line.
const Vector *line_two_point_two
A point on a given line.

DESCRIPTION

Given four points, assumes two lines from them and derives the common plane between them.

RETURNS

ERROR if the lines are not coplanar or allocation fails. NO_ERROR otherwise.

RELATED

plane_from_plucker_lines, points_from_plucker distance_between_lines_as_points

DISCLAIMER

This software is not adequatedly tested. It is recomended that results are checked independantly where appropriate.

AUTHOR

Andrew Emmott (aemmott)

DOCUMENTER

Andrew Emmott (aemmott)

SEE ALSO

points_from_plucker , distance_between_lines_as_points , plane_from_plucker_lines , point_projection_matrix_from_line_projection_matrix