The 3D ACIS® Modeler (ACIS) is Spatial’s prominent 3D solid modeling engine. 3D InterOp is a CAD data translation framework (Interoperability)

HowTo:Determine if a list of points are colinear?

From DocR19

Jump to: navigation, search

Call the function collinear in geom_utl.hxx.

Contents

Signature

logical collinear(int                npts,
		  const SPAposition  pts[],
		  double             tol);

Header Files

#include "geom_utl.hxx"

Example

SPAposition pos_array[3];
pos_array[0] = P0->get_pos();
pos_array[1] = P1->get_pos();
pos_array[2] = P2->get_pos();
if (collinear(3, pos_array, SPAresabs))
{
...

Related Content

See also: :Category:FAQs
Personal tools