DubiousEngine
0.2.0
Simple Game Engine
|
A 3D Point. More...
#include <Point.h>
Public Member Functions | |
PointT ()=default | |
Default Constructor. More... | |
PointT (float x, float y, float z) | |
Constructor. More... | |
float | x () const |
X accessor. More... | |
float | y () const |
Y accessor. More... | |
float | z () const |
Z accessor. More... | |
Friends | |
bool | operator== (const PointT< T > &a, const PointT< T > &b) |
bool | operator!= (const PointT< T > &a, const PointT< T > &b) |
std::ostream & | operator<< (std::ostream &o, const PointT< T > &a) |
A 3D Point.
Represents a 3D point. This is different from a Vector in that it is not a direction, it is simply a point in space. It is a template only so that we can create Points intended for different uses that the compiler can enforce
|
default |
Default Constructor.
Creates a Point at 0,0,0
|
inline |
Constructor.
Creates the point at the coordinate specified
x | - [in] X component |
y | - [in] Y component |
z | - [in] Z component |
|
inline |
X accessor.
|
inline |
Y accessor.
|
inline |
Z accessor.
|
friend |