 |
Gorgon Game Engine
|
Go to the documentation of this file.
9 namespace Gorgon {
namespace Geometry {
27 return X*other.
X +
Y*other.
Y +
Z*other.
Z;
31 return {
X*val,
Y*val,
Z*val};
35 return {
X/val,
Y/val,
Z/val};
39 return {
X+other.
X,
Y+other.
Y,
Z+other.
Z};
43 return {
X-other.
X,
Y-other.
Y,
Z-other.
Z};
49 return {
X/dist,
Y/dist,
Z/dist};
57 return (
Float)(std::abs(
X)+std::abs(
Y)+std::abs(
Z));
61 return {
Y*other.
Z -
Z*other.
Y,
Z*other.
X -
X*other.
Z,
X*other.
Y -
Y*other.
X};
79 out<<
"("<<point.
X<<
", "<<point.
Y<<
", "<<point.
Z<<
")";
T_ Vector[3]
Definition: Point3D.h:71
basic_Point3D CrossProduct(const basic_Point3D &other) const
Definition: Point3D.h:60
basic_Point3D operator+(const basic_Point3D &other) const
Definition: Point3D.h:38
T_ Y
Definition: Point3D.h:67
basic_Point3D Normalize() const
Definition: Point3D.h:46
T_ Z
Definition: Point3D.h:68
Float operator*(const basic_Point3D &other) const
Definition: Point3D.h:26
basic_Point3D operator/(Float val) const
Definition: Point3D.h:34
float Float
Represents floating point data type.
Definition: Types.h:16
basic_Point3D(const basic_Point< T_ > &point, const T_ &Z=T_())
Filling constructor.
Definition: Point3D.h:24
basic_Point3D(const T_ &X, const T_ &Y, const T_ &Z)
Filling constructor.
Definition: Point3D.h:21
Root namespace for Gorgon Game Engine.
Definition: Any.h:19
T_ BaseType
Base type of the point elements.
Definition: Point3D.h:15
T_ X
Definition: Point3D.h:66
This class represents a 2D point.
Definition: Point.h:32
basic_Point3D operator-(const basic_Point3D &other) const
Definition: Point3D.h:42
std::ostream & operator<<(std::ostream &out, const basic_Bounds< T_ > &bounds)
Allows streaming of bounds.
Definition: Bounds.h:415
Float Distance() const
Definition: Point3D.h:52
Float ManhattanDistance() const
Definition: Point3D.h:56
basic_Point3D()
Default constructor, does not zero initialize point.
Definition: Point3D.h:18