#include <Midpoint.h>
Public Methods | |
Midpoint (double imx, double imy, double imz, double ilength) | |
the do it yourself constructor. More... | |
Midpoint (double x1, double x2, double y1, double y2, double z1, double z2) | |
the easier make midpoint from edge points constructor. More... | |
bool | operator== (const Midpoint &obj) const |
simple equivalence test necessary for find operations. More... | |
Midpoint & | operator= (const Midpoint &obj) |
assignment. More... | |
GLdouble | get_mx () |
get the midpoint x value. More... | |
void | set_mx (GLdouble ix) |
set the midpoint x value. More... | |
GLdouble | get_my () |
get the midpoint y value. More... | |
void | set_my (GLdouble iy) |
set the midpoint y value. More... | |
GLdouble | get_mz () |
get the midpoint z value. More... | |
void | set_mz (GLdouble iz) |
set the midpoint z value. More... | |
char * | get_length () |
get the length string. More... | |
void | set_length (char *inlength) |
set the length string. More... | |
Private Attributes | |
double | mx |
double | my |
double | mz |
char | length [30] |
Midpoint encapsulates the mx,my,mz position of the midpoint of an edge. get_length provides a premade label of the lengthin string form. set_? methods exist for the members but should be avoided unless you're quite careful to adjust the length correctly.
Definition at line 30 of file Midpoint.h.
|
the do it yourself constructor.
Definition at line 37 of file Midpoint.h. |
|
the easier make midpoint from edge points constructor.
Definition at line 43 of file Midpoint.h. |
|
get the length string.
Definition at line 102 of file Midpoint.h. References length. |
|
get the midpoint x value.
Definition at line 66 of file Midpoint.h. Referenced by Timestep::calc_and_move. |
|
get the midpoint y value.
Definition at line 78 of file Midpoint.h. Referenced by Timestep::calc_and_move. |
|
get the midpoint z value.
Definition at line 90 of file Midpoint.h. Referenced by Timestep::calc_and_move. |
|
assignment.
Definition at line 57 of file Midpoint.h. |
|
simple equivalence test necessary for find operations.
Definition at line 52 of file Midpoint.h. |
|
set the length string.
Definition at line 108 of file Midpoint.h. References length. |
|
set the midpoint x value.
Definition at line 72 of file Midpoint.h. References mx. Referenced by Timestep::calc_and_move. |
|
set the midpoint y value.
Definition at line 84 of file Midpoint.h. References my. Referenced by Timestep::calc_and_move. |
|
set the midpoint z value.
Definition at line 96 of file Midpoint.h. References mz. Referenced by Timestep::calc_and_move. |
|
Definition at line 34 of file Midpoint.h. Referenced by get_length, Midpoint, operator=, and set_length. |
|
Definition at line 33 of file Midpoint.h. Referenced by Midpoint, operator=, operator==, and set_mx. |
|
Definition at line 33 of file Midpoint.h. Referenced by Midpoint, operator=, operator==, and set_my. |
|
Definition at line 33 of file Midpoint.h. Referenced by Midpoint, operator=, operator==, and set_mz. |