Daniele Bartolini 10 лет назад
Родитель
Сommit
d7a8511e6d
3 измененных файлов с 3 добавлено и 10 удалено
  1. 1 0
      src/core/math/vector2.h
  2. 1 0
      src/core/math/vector3.h
  3. 1 10
      src/core/math/vector4.h

+ 1 - 0
src/core/math/vector2.h

@@ -13,6 +13,7 @@ namespace crown
 /// @addtogroup Math
 /// @{
 
+/// Returns a new vector from individual components.
 inline Vector2 vector2(float x, float y)
 {
 	Vector2 v;

+ 1 - 0
src/core/math/vector3.h

@@ -13,6 +13,7 @@ namespace crown
 /// @addtogroup Math
 /// @{
 
+/// Returns a new vector from individual components.
 inline Vector3 vector3(float x, float y, float z)
 {
 	Vector3 v;

+ 1 - 10
src/core/math/vector4.h

@@ -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;