QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
opennurbs_point.cpp File Reference
#include "opennurbs.h"

Functions

ON_3dVector ON_CrossProduct (const double *a, const double *b)
 
ON_3fVector ON_CrossProduct (const float *a, const float *b)
 
ON_3dVector ON_CrossProduct (const ON_2dVector &a, const ON_2dVector &b)
 
ON_3fVector ON_CrossProduct (const ON_2fVector &a, const ON_2fVector &b)
 
ON_3dVector ON_CrossProduct (const ON_3dVector &a, const ON_3dVector &b)
 
ON_3fVector ON_CrossProduct (const ON_3fVector &a, const ON_3fVector &b)
 
double ON_DotProduct (const ON_2dVector &a, const ON_2dVector &b)
 
float ON_DotProduct (const ON_2fVector &a, const ON_2fVector &b)
 
double ON_DotProduct (const ON_3dVector &a, const ON_3dVector &b)
 
float ON_DotProduct (const ON_3fVector &a, const ON_3fVector &b)
 
int ON_Get3dConvexHull (const ON_SimpleArray< ON_3dPoint > &points, ON_SimpleArray< ON_PlaneEquation > &hull)
 
bool ON_GetConicEquationThrough6Points (int stride, const double *points2d, double conic[6], double *max_pivot, double *min_pivot, double *zero_pivot)
 
bool ON_GetEllipseConicEquation (double a, double b, double x0, double y0, double alpha, double conic[6])
 
bool ON_IsConicEquationAnEllipse (const double conic[6], ON_2dPoint &center, ON_2dVector &major_axis, ON_2dVector &minor_axis, double *major_radius, double *minor_radius)
 
bool ON_IsDegenrateConicHelper (double A, double B, double C, double D, double E)
 
bool ON_IsOrthogonalFrame (const ON_2dVector &X, const ON_2dVector &Y)
 
bool ON_IsOrthogonalFrame (const ON_3dVector &X, const ON_3dVector &Y, const ON_3dVector &Z)
 
bool ON_IsOrthonormalFrame (const ON_2dVector &X, const ON_2dVector &Y)
 
bool ON_IsOrthonormalFrame (const ON_3dVector &X, const ON_3dVector &Y, const ON_3dVector &Z)
 
bool ON_IsRightHandFrame (const ON_2dVector &X, const ON_2dVector &Y)
 
bool ON_IsRightHandFrame (const ON_3dVector &X, const ON_3dVector &Y, const ON_3dVector &Z)
 
bool ON_IsValid (double x)
 
bool ON_IsValidFloat (float x)
 
double ON_TripleProduct (const double *a, const double *b, const double *c)
 
float ON_TripleProduct (const float *a, const float *b, const float *c)
 
double ON_TripleProduct (const ON_3dVector &a, const ON_3dVector &b, const ON_3dVector &c)
 
float ON_TripleProduct (const ON_3fVector &a, const ON_3fVector &b, const ON_3fVector &c)
 
double ON_WedgeProduct (const ON_2dVector &a, const ON_2dVector &b)
 
ON_2dPoint operator* (double d, const ON_2dPoint &p)
 
ON_2dVector operator* (double d, const ON_2dVector &v)
 
ON_2dPoint operator* (double d, const ON_2fPoint &p)
 
ON_2dVector operator* (double d, const ON_2fVector &v)
 
ON_3dPoint operator* (double d, const ON_3dPoint &p)
 
ON_3dVector operator* (double d, const ON_3dVector &v)
 
ON_3dPoint operator* (double d, const ON_3fPoint &p)
 
ON_3dVector operator* (double d, const ON_3fVector &v)
 
ON_4dPoint operator* (double d, const ON_4dPoint &p)
 
ON_4dPoint operator* (double d, const ON_4fPoint &p)
 
ON_2fPoint operator* (float d, const ON_2fPoint &p)
 
ON_2fVector operator* (float d, const ON_2fVector &v)
 
ON_3fPoint operator* (float d, const ON_3fPoint &p)
 
ON_3fVector operator* (float d, const ON_3fVector &v)
 
ON_4fPoint operator* (float d, const ON_4fPoint &p)
 
ON_2dPoint operator* (float f, const ON_2dPoint &p)
 
ON_2dVector operator* (float f, const ON_2dVector &v)
 
ON_3dPoint operator* (float f, const ON_3dPoint &p)
 
ON_3dVector operator* (float f, const ON_3dVector &v)
 
ON_2fPoint operator* (int d, const ON_2fPoint &p)
 
ON_2fVector operator* (int d, const ON_2fVector &v)
 
ON_3fPoint operator* (int d, const ON_3fPoint &p)
 
ON_3fVector operator* (int d, const ON_3fVector &v)
 
ON_2dPoint operator* (int i, const ON_2dPoint &p)
 
ON_2dVector operator* (int i, const ON_2dVector &v)
 
ON_3dPoint operator* (int i, const ON_3dPoint &p)
 
ON_3dVector operator* (int i, const ON_3dVector &v)
 

Variables

const ON_3fPoint ON_forigin (0.0f, 0.0f, 0.0f)
 
const ON_3fVector ON_fxaxis (1.0f, 0.0f, 0.0f)
 
const ON_3fVector ON_fyaxis (0.0f, 1.0f, 0.0f)
 
const ON_3fVector ON_fzaxis (0.0f, 0.0f, 1.0f)
 
const ON_3dPoint ON_origin (0.0, 0.0, 0.0)
 
const ON_3dPoint ON_UNSET_POINT (ON_UNSET_VALUE, ON_UNSET_VALUE, ON_UNSET_VALUE)
 
const ON_3dVector ON_UNSET_VECTOR (ON_UNSET_VALUE, ON_UNSET_VALUE, ON_UNSET_VALUE)
 
const ON_3dVector ON_xaxis (1.0, 0.0, 0.0)
 
const ON_3dVector ON_yaxis (0.0, 1.0, 0.0)
 
const ON_3dVector ON_zaxis (0.0, 0.0, 1.0)
 

Function Documentation

◆ ON_CrossProduct() [1/6]

ON_3dVector ON_CrossProduct ( const double * a,
const double * b )

◆ ON_CrossProduct() [2/6]

ON_3fVector ON_CrossProduct ( const float * a,
const float * b )

◆ ON_CrossProduct() [3/6]

ON_3dVector ON_CrossProduct ( const ON_2dVector & a,
const ON_2dVector & b )

◆ ON_CrossProduct() [4/6]

ON_3fVector ON_CrossProduct ( const ON_2fVector & a,
const ON_2fVector & b )

◆ ON_CrossProduct() [5/6]

ON_3dVector ON_CrossProduct ( const ON_3dVector & a,
const ON_3dVector & b )

◆ ON_CrossProduct() [6/6]

ON_3fVector ON_CrossProduct ( const ON_3fVector & a,
const ON_3fVector & b )

◆ ON_DotProduct() [1/4]

double ON_DotProduct ( const ON_2dVector & a,
const ON_2dVector & b )

◆ ON_DotProduct() [2/4]

float ON_DotProduct ( const ON_2fVector & a,
const ON_2fVector & b )

◆ ON_DotProduct() [3/4]

double ON_DotProduct ( const ON_3dVector & a,
const ON_3dVector & b )

◆ ON_DotProduct() [4/4]

float ON_DotProduct ( const ON_3fVector & a,
const ON_3fVector & b )

◆ ON_Get3dConvexHull()

int ON_Get3dConvexHull ( const ON_SimpleArray< ON_3dPoint > & points,
ON_SimpleArray< ON_PlaneEquation > & hull )

◆ ON_GetConicEquationThrough6Points()

bool ON_GetConicEquationThrough6Points ( int stride,
const double * points2d,
double conic[6],
double * max_pivot,
double * min_pivot,
double * zero_pivot )

◆ ON_GetEllipseConicEquation()

bool ON_GetEllipseConicEquation ( double a,
double b,
double x0,
double y0,
double alpha,
double conic[6] )

◆ ON_IsConicEquationAnEllipse()

bool ON_IsConicEquationAnEllipse ( const double conic[6],
ON_2dPoint & center,
ON_2dVector & major_axis,
ON_2dVector & minor_axis,
double * major_radius,
double * minor_radius )

◆ ON_IsDegenrateConicHelper()

bool ON_IsDegenrateConicHelper ( double A,
double B,
double C,
double D,
double E )

◆ ON_IsOrthogonalFrame() [1/2]

bool ON_IsOrthogonalFrame ( const ON_2dVector & X,
const ON_2dVector & Y )

◆ ON_IsOrthogonalFrame() [2/2]

bool ON_IsOrthogonalFrame ( const ON_3dVector & X,
const ON_3dVector & Y,
const ON_3dVector & Z )

◆ ON_IsOrthonormalFrame() [1/2]

bool ON_IsOrthonormalFrame ( const ON_2dVector & X,
const ON_2dVector & Y )

◆ ON_IsOrthonormalFrame() [2/2]

bool ON_IsOrthonormalFrame ( const ON_3dVector & X,
const ON_3dVector & Y,
const ON_3dVector & Z )

◆ ON_IsRightHandFrame() [1/2]

bool ON_IsRightHandFrame ( const ON_2dVector & X,
const ON_2dVector & Y )

◆ ON_IsRightHandFrame() [2/2]

bool ON_IsRightHandFrame ( const ON_3dVector & X,
const ON_3dVector & Y,
const ON_3dVector & Z )

◆ ON_IsValid()

bool ON_IsValid ( double x)

◆ ON_IsValidFloat()

bool ON_IsValidFloat ( float x)

◆ ON_TripleProduct() [1/4]

double ON_TripleProduct ( const double * a,
const double * b,
const double * c )

◆ ON_TripleProduct() [2/4]

float ON_TripleProduct ( const float * a,
const float * b,
const float * c )

◆ ON_TripleProduct() [3/4]

double ON_TripleProduct ( const ON_3dVector & a,
const ON_3dVector & b,
const ON_3dVector & c )

◆ ON_TripleProduct() [4/4]

float ON_TripleProduct ( const ON_3fVector & a,
const ON_3fVector & b,
const ON_3fVector & c )

◆ ON_WedgeProduct()

double ON_WedgeProduct ( const ON_2dVector & a,
const ON_2dVector & b )

◆ operator*() [1/27]

ON_2dPoint operator* ( double d,
const ON_2dPoint & p )

◆ operator*() [2/27]

ON_2dVector operator* ( double d,
const ON_2dVector & v )

◆ operator*() [3/27]

ON_2dPoint operator* ( double d,
const ON_2fPoint & p )

◆ operator*() [4/27]

ON_2dVector operator* ( double d,
const ON_2fVector & v )

◆ operator*() [5/27]

ON_3dPoint operator* ( double d,
const ON_3dPoint & p )

◆ operator*() [6/27]

ON_3dVector operator* ( double d,
const ON_3dVector & v )

◆ operator*() [7/27]

ON_3dPoint operator* ( double d,
const ON_3fPoint & p )

◆ operator*() [8/27]

ON_3dVector operator* ( double d,
const ON_3fVector & v )

◆ operator*() [9/27]

ON_4dPoint operator* ( double d,
const ON_4dPoint & p )

◆ operator*() [10/27]

ON_4dPoint operator* ( double d,
const ON_4fPoint & p )

◆ operator*() [11/27]

ON_2fPoint operator* ( float d,
const ON_2fPoint & p )

◆ operator*() [12/27]

ON_2fVector operator* ( float d,
const ON_2fVector & v )

◆ operator*() [13/27]

ON_3fPoint operator* ( float d,
const ON_3fPoint & p )

◆ operator*() [14/27]

ON_3fVector operator* ( float d,
const ON_3fVector & v )

◆ operator*() [15/27]

ON_4fPoint operator* ( float d,
const ON_4fPoint & p )

◆ operator*() [16/27]

ON_2dPoint operator* ( float f,
const ON_2dPoint & p )

◆ operator*() [17/27]

ON_2dVector operator* ( float f,
const ON_2dVector & v )

◆ operator*() [18/27]

ON_3dPoint operator* ( float f,
const ON_3dPoint & p )

◆ operator*() [19/27]

ON_3dVector operator* ( float f,
const ON_3dVector & v )

◆ operator*() [20/27]

ON_2fPoint operator* ( int d,
const ON_2fPoint & p )

◆ operator*() [21/27]

ON_2fVector operator* ( int d,
const ON_2fVector & v )

◆ operator*() [22/27]

ON_3fPoint operator* ( int d,
const ON_3fPoint & p )

◆ operator*() [23/27]

ON_3fVector operator* ( int d,
const ON_3fVector & v )

◆ operator*() [24/27]

ON_2dPoint operator* ( int i,
const ON_2dPoint & p )

◆ operator*() [25/27]

ON_2dVector operator* ( int i,
const ON_2dVector & v )

◆ operator*() [26/27]

ON_3dPoint operator* ( int i,
const ON_3dPoint & p )

◆ operator*() [27/27]

ON_3dVector operator* ( int i,
const ON_3dVector & v )

Variable Documentation

◆ ON_forigin

const ON_3fPoint ON_forigin(0.0f, 0.0f, 0.0f) ( 0. 0f,
0. 0f,
0. 0f )

◆ ON_fxaxis

const ON_3fVector ON_fxaxis(1.0f, 0.0f, 0.0f) ( 1. 0f,
0. 0f,
0. 0f )

◆ ON_fyaxis

const ON_3fVector ON_fyaxis(0.0f, 1.0f, 0.0f) ( 0. 0f,
1. 0f,
0. 0f )

◆ ON_fzaxis

const ON_3fVector ON_fzaxis(0.0f, 0.0f, 1.0f) ( 0. 0f,
0. 0f,
1. 0f )

◆ ON_origin

const ON_3dPoint ON_origin(0.0, 0.0, 0.0) ( 0. 0,
0. 0,
0. 0 )

◆ ON_UNSET_POINT

◆ ON_UNSET_VECTOR

◆ ON_xaxis

const ON_3dVector ON_xaxis(1.0, 0.0, 0.0) ( 1. 0,
0. 0,
0. 0 )

◆ ON_yaxis

const ON_3dVector ON_yaxis(0.0, 1.0, 0.0) ( 0. 0,
1. 0,
0. 0 )

◆ ON_zaxis

const ON_3dVector ON_zaxis(0.0, 0.0, 1.0) ( 0. 0,
0. 0,
1. 0 )