#include <points.H>
Inheritance diagram for mlib::Wpt:
Public Types | |
typedef double | value_type |
Public Member Functions | |
Point3 () | |
Point3 (double s) | |
Point3 (double x, double y, double z) | |
void | set (double x, double y, double z) |
const double * | data () const |
double | operator[] (int index) const |
double & | operator[] (int index) |
Wpt | operator * (double s) const |
Wpt | operator/ (double s) const |
Wpt | operator+ (const Wpt &p) const |
Adds a point to a point. | |
Wpt | operator+ (const Wvec &v) const |
Wvec | operator- (const Wpt &p) const |
Wpt | operator- (const Wvec &v) const |
Wpt | operator- () const |
void | operator+= (const Wpt &p) |
Adds a point to a point. | |
void | operator+= (const Wvec &v) |
void | operator-= (const Wvec &v) |
void | operator *= (double s) |
void | operator/= (double s) |
double | dist_sqrd (const Wpt &p) const |
Computes the distance squared between two points. | |
double | dist (const Wpt &p) const |
Computes the distance between two points. | |
bool | operator== (const Wpt &p) const |
Are the two points exactly equal (component wise)? | |
bool | operator!= (const Wpt &p) const |
Are the two points not equal (component wise)? | |
bool | is_equal (const Wpt &p, double epsSqrd=epsAbsSqrdMath()) const |
Is the distance squared between the two points essentially zero? | |
Constructors | |
Wpt () | |
Wpt (double s) | |
Wpt (double x, double y, double z) | |
Wpt (CXYpt &) | |
Wpt (CNDCZpt &) | |
Wpt (CXYpt &, double d) | |
Wpt (CXYpt &, CWpt &) | |
Wpt (CWtransf &) | |
Wpt (CWline &, CWline &) | |
Wpt (CWline &, CWpt &) | |
Wpt (CWplane &, CWline &) | |
Misc. Functions | |
bool | in_frustum () const |
Static Public Member Functions | |
static CWpt & | Origin () |
static int | dim () |
Protected Attributes | |
double | _x |
double | _y |
double | _z |
Static Protected Attributes | |
static CWpt | _origin |
Definition at line 243 of file points.H.
|
|
|
|
|
|
|
|
|
Definition at line 83 of file points.C. References XYtoW_3. |
|
Definition at line 73 of file points.C. References VIEW_NDC_TRANS. |
|
Definition at line 65 of file points.C. References XYtoW_2. |
|
Definition at line 57 of file points.C. References XYtoW_1. |
|
|
|
|
|
Computes the distance between two points.
|
|
Computes the distance squared between two points.
|
|
Definition at line 106 of file points.C. Referenced by XF_DRAW::draw(), and is_good(). |
|
Is the distance squared between the two points essentially zero?
|
|
|
|
|
|
Are the two points not equal (component wise)?
|
|
|
|
Adds a point to a point.
|
|
|
|
Adds a point to a point.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Are the two points exactly equal (component wise)?
|
|
|
|
|
|
Definition at line 276 of file points.H. References _origin. Referenced by LMESH::fit(), BaseJOTapp::init_camera(), CRSpline::pt(), and Lvert::smooth_loc_from_parent(). |
|
|
|
|
|
|
|
|
|
Definition at line 247 of file points.H. Referenced by Origin(). |
|
|
|
|
|
|