#include <point.h>
|
double | x |
|
double | y |
|
double | z |
|
Definition at line 48 of file point.h.
RDGeom::Point3D::Point3D |
( |
| ) |
|
|
inline |
RDGeom::Point3D::Point3D |
( |
double |
xv, |
|
|
double |
yv, |
|
|
double |
zv |
|
) |
| |
|
inline |
RDGeom::Point3D::~Point3D |
( |
| ) |
|
|
inline |
RDGeom::Point3D::Point3D |
( |
const Point3D & |
other | ) |
|
|
inline |
double RDGeom::Point3D::angleTo |
( |
const Point3D & |
other | ) |
const |
|
inline |
determines the angle between a vector to this point from the origin and a vector to the other point.
The angle is unsigned: the results of this call will always be between 0 and M_PI
Definition at line 164 of file point.h.
References dotProduct(), and normalize().
virtual Point* RDGeom::Point3D::copy |
( |
| ) |
const |
|
inlinevirtual |
Cross product of this point with the another point.
The order is important here The result is "this" cross with "other" not (other x this)
Definition at line 209 of file point.h.
References x, y, and z.
unsigned int RDGeom::Point3D::dimension |
( |
| ) |
const |
|
inlinevirtual |
Point3D RDGeom::Point3D::directionVector |
( |
const Point3D & |
other | ) |
const |
|
inline |
Returns a normalized direction vector from this point to another.
Definition at line 193 of file point.h.
References normalize(), x, y, and z.
double RDGeom::Point3D::dotProduct |
( |
const Point3D & |
other | ) |
const |
|
inline |
Point3D RDGeom::Point3D::getPerpendicular |
( |
| ) |
const |
|
inline |
double RDGeom::Point3D::length |
( |
| ) |
const |
|
inlinevirtual |
double RDGeom::Point3D::lengthSq |
( |
| ) |
const |
|
inlinevirtual |
void RDGeom::Point3D::normalize |
( |
| ) |
|
|
inlinevirtual |
Point3D& RDGeom::Point3D::operator*= |
( |
double |
scale | ) |
|
|
inline |
Definition at line 99 of file point.h.
References x, y, and z.
Point3D RDGeom::Point3D::operator- |
( |
| ) |
const |
|
inline |
Point3D& RDGeom::Point3D::operator/= |
( |
double |
scale | ) |
|
|
inline |
Definition at line 93 of file point.h.
References x, y, and z.
double RDGeom::Point3D::operator[] |
( |
unsigned int |
i | ) |
const |
|
inlinevirtual |
double& RDGeom::Point3D::operator[] |
( |
unsigned int |
i | ) |
|
|
inlinevirtual |
double RDGeom::Point3D::signedAngleTo |
( |
const Point3D & |
other | ) |
const |
|
inline |
determines the signed angle between a vector to this point from the origin and a vector to the other point.
The results of this call will be between 0 and M_2_PI
Definition at line 182 of file point.h.
References M_PI, x, and y.
double RDGeom::Point3D::x |
double RDGeom::Point3D::y |
double RDGeom::Point3D::z |
The documentation for this class was generated from the following file: