An open source method of characteristics neutron transport code.
|
Class to represent a 2D/3D point in space. More...
#include "src/Point.h"
Public Member Functions | |
Point () | |
Constructor initializes an empty Point. | |
virtual | ~Point () |
Destructor. | |
void | setCoords (const double x, const double y, const double z=0.0) |
Initializes a Point with two-dimensional coordinates. More... | |
double | getX () const |
Returns this Point's x-coordinate. More... | |
double | getY () const |
Returns this Point's y-coordinate. More... | |
double | getZ () const |
Returns this Point's z-coordinate. More... | |
double * | getXYZ () |
Returns this Point's coordinates. More... | |
void | setX (const double x) |
Set the Point's x-coordinate. More... | |
void | setY (const double y) |
Set the Point's y-coordinate. More... | |
void | setZ (const double z) |
Set the Point's z-coordinate. More... | |
double | distance (const double x, const double y, const double z) const |
Compute the distance from this Point to another Point of interest. More... | |
double | distanceToPoint (const Point *point) |
Compute the distance from this Point to another Point of interest. More... | |
void | copyCoords (Point *point) |
Copy the coordinates from another point. More... | |
std::string | toString () |
Converts this Point to a character representation of its attributes. More... | |
void | setXYZ (double *xyz) |
Set the Point's x, y and z-coordinates. More... | |
Class to represent a 2D/3D point in space.
|
inline |
Copy the coordinates from another point.
point | a pointer to the Point that has the coordinates of interest |
|
inline |
|
inline |
|
inline |
Returns this Point's x-coordinate.
|
inline |
Returns this Point's coordinates.
|
inline |
Returns this Point's y-coordinate.
|
inline |
Returns this Point's z-coordinate.
|
inline |
Initializes a Point with two-dimensional coordinates.
x | x-coordinate |
y | y-coordinate |
z | z-coordinate |
|
inline |
Set the Point's x-coordinate.
x | the new x-coordinate |
|
inline |
Set the Point's x, y and z-coordinates.
xyz | array with the three coordinates |
|
inline |
Set the Point's y-coordinate.
y | the new y-coordinate |
|
inline |
Set the Point's z-coordinate.
z | the new z-coordinate |
std::string Point::toString | ( | ) |