org.openmali.angle
Class Angle
java.lang.Object
org.openmali.angle.Angle
public abstract class Angle
- extends java.lang.Object
Class to compute angle vectors makes with the origin and vectors
from angle and optionally length.
- Author:
- Amos Wenger (aka BlueSky)
|
Constructor Summary |
Angle()
|
|
Method Summary |
static float |
angle(float x,
float y)
|
static float |
angle(Tuple2f t)
|
static void |
main(java.lang.String[] argv)
Main method : test |
static Vector2f |
vec(float angle)
|
static Vector2f |
vec(float angle,
float length)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Angle
public Angle()
angle
public static float angle(float x,
float y)
- Returns:
- The angle that the vector makes with the origin (0, 1)
angle
public static float angle(Tuple2f t)
- Returns:
- The angle that the vector makes with the origin (0, 1)
vec
public static Vector2f vec(float angle)
- Returns:
- A vector which makes a certain angle with the origin (0, 1)
vec
public static Vector2f vec(float angle,
float length)
- Returns:
- A vector which makes a certain angle with the origin (0, 1)
main
public static void main(java.lang.String[] argv)
- Main method : test