core.field
Class Vec3Field

java.lang.Object
  extended bycore.field.Vec3Field
Direct Known Subclasses:
Colorizer

public abstract class Vec3Field
extends java.lang.Object

A 3-dimensional vector field. Vector fields are created by deriving subclasses that define a function mapping from Vec3 to Vec3.


Constructor Summary
Vec3Field()
           
 
Method Summary
 Vec3 get(Vec3 p)
          Returns: a new Vec3 with the value of the field at 'p'.
abstract  Vec3 get(Vec3 p, Vec2 xpos, 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

Vec3Field

public Vec3Field()
Method Detail

get

public abstract Vec3 get(Vec3 p,
                         Vec2 xpos,
                         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(Vec3 p)
Returns: a new Vec3 with the value of the field at 'p'. 'p' is not modified.