SilverLining
|
A simple double-precision 4D vector class with no operations defined. More...
#include <Vector4.h>
Public Member Functions | |
Vector4 (double px, double py, double pz, double pw) | |
Constructs a Vector4 from the given x, y, z, and w values. | |
Vector4 (const Vector3 &v3) | |
Constructs a Vector4 from a Vector3, setting w to 1. | |
Vector4 () | |
Default constructor; initializes the Vector4 to (0, 0, 0, 1) | |
double SILVERLINING_API | Dot (const Vector4 &v) const |
Determines the dot product between this vector and another, and returns the result. | |
Vector4 SILVERLINING_API | operator* (double n) const |
Scales each x,y,z value of the vector by a constant n, and returns the result. | |
Public Attributes | |
double | x |
The x, y, z, and w data members are public for convenience. | |
A simple double-precision 4D vector class with no operations defined.
Essentially a struct with constructors.
|
inline |
Constructs a Vector4 from the given x, y, z, and w values.
|
inline |
|
inline |
Determines the dot product between this vector and another, and returns the result.
|
inline |
Scales each x,y,z value of the vector by a constant n, and returns the result.
double SilverLining::Vector4::x |
The x, y, z, and w data members are public for convenience.