core.field
Class Vec2Vec3Field

java.lang.Object
  extended bycore.field.Vec2Vec3Field

public abstract class Vec2Vec3Field
extends java.lang.Object

A 3-D vector field on a 2-D domain. Vector fields are created by deriving subclasses that define a function mapping from Vec2 to Vec3.


Constructor Summary
Vec2Vec3Field()
           
 
Method Summary
 Vec3 get(Vec2 p)
          Returns: a new Vec3 with the value of the field at 'p'.
abstract  Vec3 get(Vec2 p, Vec3 f)
          Sets 'f' to the value of the field at 'p'.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Vec2Vec3Field

public Vec2Vec3Field()
Method Detail

get

public abstract Vec3 get(Vec2 p,
                         Vec3 f)
Sets 'f' to the value of the field at 'p'. 'p' is not modified Returns: resulting 'f' * This abstract method *must* be overridden


get

public Vec3 get(Vec2 p)
Returns: a new Vec3 with the value of the field at 'p'. 'p' is not modified.