#include <Math3D.hpp>
Public Member Functions | |
| Vector3D () | |
| Vector3D (double x_, double y_, double z_) | |
| double | length () const |
| double | dot (const Vector3D &o) const |
| Vector3D | operator+ (const Vector3D &o) const |
| Vector3D | operator- (const Vector3D &o) const |
| Vector3D | operator* (double s) const |
| Vector3D | operator/ (double s) const |
| Vector3D & | operator+= (const Vector3D &o) |
| Vector3D & | operator-= (const Vector3D &o) |
| Vector3D & | operator*= (double s) |
| Vector3D & | operator/= (double s) |
Public Attributes | |
| double | x |
| double | y |
| double | z |
Definition at line 13 of file Math3D.hpp.
| Math::Vector3D::Vector3D | ( | ) |
Definition at line 10 of file Math3D.cpp.
| Math::Vector3D::Vector3D | ( | double | x_, |
| double | y_, | ||
| double | z_ ) |
| double Math::Vector3D::dot | ( | const Vector3D & | o | ) | const |
Definition at line 20 of file Math3D.cpp.
References Vector3D(), x, y, and z.
| double Math::Vector3D::length | ( | ) | const |
| Math::Vector3D Math::Vector3D::operator* | ( | double | s | ) | const |
| Math::Vector3D & Math::Vector3D::operator*= | ( | double | s | ) |
| Math::Vector3D Math::Vector3D::operator+ | ( | const Vector3D & | o | ) | const |
Definition at line 25 of file Math3D.cpp.
References Vector3D(), x, y, and z.
| Math::Vector3D & Math::Vector3D::operator+= | ( | const Vector3D & | o | ) |
Definition at line 45 of file Math3D.cpp.
References Vector3D(), x, y, and z.
| Math::Vector3D Math::Vector3D::operator- | ( | const Vector3D & | o | ) | const |
Definition at line 30 of file Math3D.cpp.
References Vector3D(), x, y, and z.
| Math::Vector3D & Math::Vector3D::operator-= | ( | const Vector3D & | o | ) |
Definition at line 51 of file Math3D.cpp.
References Vector3D(), x, y, and z.
| Math::Vector3D Math::Vector3D::operator/ | ( | double | s | ) | const |
Definition at line 40 of file Math3D.cpp.
References Vector3D(), x, y, and z.
| Math::Vector3D & Math::Vector3D::operator/= | ( | double | s | ) |
| double Math::Vector3D::x |
Definition at line 15 of file Math3D.hpp.
| double Math::Vector3D::y |
Definition at line 15 of file Math3D.hpp.
| double Math::Vector3D::z |
Definition at line 15 of file Math3D.hpp.