|
|
@@ -13,6 +13,7 @@ namespace crown
|
|
|
/// @addtogroup Math
|
|
|
/// @{
|
|
|
|
|
|
+/// Returns a new vector from individual components.
|
|
|
inline Vector4 vector4(float x, float y, float z, float w)
|
|
|
{
|
|
|
Vector4 v;
|
|
|
@@ -23,16 +24,6 @@ inline Vector4 vector4(float x, float y, float z, float w)
|
|
|
return v;
|
|
|
}
|
|
|
|
|
|
-inline Vector4 vector4(const Vector3& a, float w)
|
|
|
-{
|
|
|
- Vector4 v;
|
|
|
- v.x = a.x;
|
|
|
- v.y = a.y;
|
|
|
- v.z = a.z;
|
|
|
- v.w = w;
|
|
|
- return v;
|
|
|
-}
|
|
|
-
|
|
|
inline Vector4& operator+=(Vector4& a, const Vector4& b)
|
|
|
{
|
|
|
a.x += b.x;
|