WINDEX
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
cxyz Class Reference

3D point or vector More...

#include <cxy.h>

Public Member Functions

 cxyz (double X, double Y, double Z)
 
cxyz vect (const cxyz &other) const
 vector from this point to other More...
 
cxyz cross (const cxyz &other)
 
double dot (const cxyz &other)
 
bool operator== (const cxyz &other) const
 

Static Public Member Functions

static cxyz plane (const cxyz &p0, const cxyz &p1, const cxyz &p2)
 
static cxyz intersectLineTriangle (const cxyz &la, const cxyz &lb, const cxyz &p0, const cxyz &p1, const cxyz &p2)
 intersection point between line and triangle More...
 

Public Attributes

double x
 
double y
 
double z
 

Detailed Description

3D point or vector

Member Function Documentation

◆ intersectLineTriangle()

static cxyz cxyz::intersectLineTriangle ( const cxyz la,
const cxyz lb,
const cxyz p0,
const cxyz p1,
const cxyz p2 
)
inlinestatic

intersection point between line and triangle

Parameters
la
lb
plane
Returns
intersection point https://en.wikipedia.org/wiki/Line%E2%80%93plane_intersection#Parametric_form

◆ vect()

cxyz cxyz::vect ( const cxyz other) const
inline

vector from this point to other

Parameters
other
Returns

The documentation for this class was generated from the following file: