no message

This commit is contained in:
Gregory Pierce 2002-12-20 23:00:37 +00:00
parent f92a041168
commit c886a36fc5
5 changed files with 35 additions and 92 deletions

View file

@ -148,7 +148,16 @@ public class Vector2f extends Vector {
return dest;
}
/**
* Get the magnitude of of the vector
* @return the magnitude of the vector
*/
public float magnitude()
{
return Math.sqrt( (x * x) + (y * y) );
}
/**
* The dot product of two vectors is calculated as
* v1.x * v2.x + v1.y * v2.y + v1.z * v2.z

View file

@ -213,7 +213,16 @@ public class Vector3f extends Vector {
return dest;
}
/**
* Get the magnitude of of the vector
* @return the magnitude of the vector
*/
public float magnitude()
{
return Math.sqrt( (x * x) + (y * y) + (z * z) );
}
/**
* The dot product of two vectors is calculated as
* v1.x * v2.x + v1.y * v2.y + v1.z * v2.z

View file

@ -191,7 +191,16 @@ public class Vector4f extends Vector {
return dest;
}
/**
* Get the magnitude of of the vector
* @return the magnitude of the vector
*/
public float magnitude()
{
return Math.sqrt( (x * x) + (y * y) + (z * z) + (w * w) );
}
/**
* The dot product of two vectors is calculated as
* v1.x * v2.x + v1.y * v2.y + v1.z * v2.z + v1.w * v2.w