All Frameworks  Class Hierarchy  This Framework  Indexes

SPAbase Global Function get_line_from_points


logical get_line_from_points(int npts,
const SPAposition* pts,
SPAposition& line_point,
SPAunit_vector& line_direction)
Given an array of positions, tries to find a line on which they all lie.

Role: Returns FALSE  if the points do not span a line, OR
   if they do not all fit in the same line.

Parameters:
npts
number of positions in the pts array.
pts
array of positions.
line_point
returned point on line.
line_direction
returned line direction.

This object is included in the file: vector_utils.hxx

Copyright (c) 1989-2007 by Spatial Corp. All rights reserved.