mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-05 14:35:58 +00:00
no message
This commit is contained in:
parent
f92a041168
commit
c886a36fc5
5 changed files with 35 additions and 92 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue