Next dgough
@@ -9,6 +9,7 @@ namespace gameplay
{
Plane::Plane()
+ : _normal(0, 1, 0), _distance(0)
}
@@ -37,7 +37,7 @@ public:
static const int INTERSECTS_BACK = -1;
/**
- * Constructor.
+ * Constructs a new plane with normal (0, 1, 0) and distance 0.
*/
Plane();
@@ -10,8 +10,8 @@ Quaternion::Quaternion()
Quaternion::Quaternion(float x, float y, float z, float w)
+ : x(x), y(y), z(z), w(w)
- set(x, y, z, w);
Quaternion::Quaternion(float* array)
Ray::Ray()
+ : _direction(0, 0, 1)
@@ -27,7 +27,7 @@ public:
static const int INTERSECTS_NONE = -1;
+ * Constructs a new ray initialized to origin(0,0,0) and direction(0,0,1).
Ray();
@@ -10,8 +10,8 @@ Vector2::Vector2()
Vector2::Vector2(float x, float y)
+ : x(x), y(y)
- set(x, y);
Vector2::Vector2(const float* array)
@@ -11,8 +11,8 @@ Vector3::Vector3()
Vector3::Vector3(float x, float y, float z)
+ : x(x), y(y), z(z)
- set(x, y, z);
Vector3::Vector3(const float* array)
@@ -10,8 +10,8 @@ Vector4::Vector4()
Vector4::Vector4(float x, float y, float z, float w)
Vector4::Vector4(const float* src)