|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcore.field.Vec2Field
core.field.Vec2UnitField
Normalized 2-D vector field. Vec2UnitField is a subclass of Vec2Field and transforms a given Vec2Field so that the magnitude at every point in the field is one, but the direction is the same.
Field Summary | |
private Vec2Field |
field
|
Constructor Summary | |
Vec2UnitField(Vec2Field field)
Constructs a new Vec2UnitField that is the same as 'field' but with all the vector values normalize to unit magnitude. |
Method Summary | |
Vec2 |
get(Vec2 p,
Vec2 f)
Sets 'f' to the value of the field at 'p', scaled to unit magnitude. |
Methods inherited from class core.field.Vec2Field |
get |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private Vec2Field field
Constructor Detail |
public Vec2UnitField(Vec2Field field)
Method Detail |
public Vec2 get(Vec2 p, Vec2 f)
get
in class Vec2Field
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |