Ver Fonte

Minor fix in Quaternion source

hammeron-art há 11 anos atrás
pai
commit
6bb7535f2f
2 ficheiros alterados com 5 adições e 4 exclusões
  1. 1 1
      gameplay/src/Quaternion.cpp
  2. 4 3
      gameplay/src/Quaternion.h

+ 1 - 1
gameplay/src/Quaternion.cpp

@@ -215,7 +215,7 @@ void Quaternion::normalize(Quaternion* dst) const
     dst->w *= n;
     dst->w *= n;
 }
 }
 
 
-void Quaternion::rotatePoint(Vector3& point, Vector3* dst) const
+void Quaternion::rotatePoint(const Vector3& point, Vector3* dst) const
 {
 {
 	Quaternion vecQuat;
 	Quaternion vecQuat;
 	Quaternion resQuat;
 	Quaternion resQuat;

+ 4 - 3
gameplay/src/Quaternion.h

@@ -258,10 +258,11 @@ public:
 	*
 	*
 	* Note: The point must normalized.
 	* Note: The point must normalized.
 	*
 	*
-	* @param vec The vector to multiply.
-	* @return The multiplied vector.
+	* @param point The vector to rotate.
+	* @param dst The vector to store the result.
+
 	*/
 	*/
-	void rotatePoint(Vector3& point, Vector3* dst) const;
+	void rotatePoint(const Vector3& point, Vector3* dst) const;
 
 
     /**
     /**
      * Sets the elements of the quaternion to the specified values.
      * Sets the elements of the quaternion to the specified values.