add ability to scale and transform ScalarFields
[anneal.git] / src / edu / berkeley / qfat / voxel / ScalarField.java
1 package edu.berkeley.qfat.voxel;
2 import edu.berkeley.qfat.*;
3 import edu.berkeley.qfat.geom.*;
4
5 /**
6  * A sampled field in 3-space; positive values indicate the
7  * <b>interior</b> of the object.
8  */
9 public interface ScalarField {
10
11     public float getSample(Point p);
12
13     /** transform the scalar field in space */
14     public ScalarField transform(Matrix m);
15
16     /** add f to all scalar values */
17     public ScalarField plus(float f);
18
19     /** multiply all scalar values by f */
20     public ScalarField times(float f);
21
22 }