|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openmali.angle.PolarCoordinate2f
public class PolarCoordinate2f
Two-dimensional floating point polar coordinate.
| Constructor Summary | |
|---|---|
PolarCoordinate2f()
Constructor for PolarCoordinate2f. |
|
| Method Summary | |
|---|---|
Vector2f |
add(Vector2f vec)
Adds this polar coordinate to the specified vector2f |
void |
add(Vector2f src,
Vector2f dest)
Adds this polar coordinate to the specified vector2f and place the result in a destination vector2f |
float |
getAngle()
|
float |
getRadius()
|
void |
set(float radius,
float angle)
Set the polar coordinates. |
void |
set(PolarCoordinate2f src)
Sets the polar coordinates from another polar coordinate. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PolarCoordinate2f()
| Method Detail |
|---|
public float getRadius()
public float getAngle()
public void set(float radius,
float angle)
radius - The new radiusangle - The new angle, in degreespublic void set(PolarCoordinate2f src)
src - The source polar coordinatepublic Vector2f add(Vector2f vec)
vec - The vector to modify
public void add(Vector2f src,
Vector2f dest)
src - The source vector to modifydest - The destination result
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||