edu.stanford.rsl.konrad.geometry
Class AbstractCurve

java.lang.Object
  extended by edu.stanford.rsl.konrad.geometry.AbstractShape
      extended by edu.stanford.rsl.konrad.geometry.AbstractCurve
All Implemented Interfaces:
Transformable, java.io.Serializable
Direct Known Subclasses:
BSpline, StraightLine

public abstract class AbstractCurve
extends AbstractShape

Abstract class to model n dimensional curves.

Author:
akmaier
See Also:
Serialized Form

Constructor Summary
AbstractCurve()
           
 
Method Summary
abstract  PointND evaluate(double u)
          Returns a point on the Curve at position u [0, 1];
 PointND evaluate(PointND u)
          Returns the point on the shape at the internal position u.
 int getInternalDimension()
          returns the internal dimension of the shape, i.e.
 
Methods inherited from class edu.stanford.rsl.konrad.geometry.AbstractShape
applyTransform, getDimension, getHitsOnBoundingBox_slow, getHitsOnBoundingBox, getMax, getMin, getRasterPoints, intersect, isBounded
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractCurve

public AbstractCurve()
Method Detail

evaluate

public PointND evaluate(PointND u)
Description copied from class: AbstractShape
Returns the point on the shape at the internal position u. If the shape is a curve, u is of dimension 1, if the shape is a surface u is of dimension 2, etc.

Specified by:
evaluate in class AbstractShape
Parameters:
u - the point in the internal parameter dimension
Returns:
the point on the shape at the internal dimension

evaluate

public abstract PointND evaluate(double u)
Returns a point on the Curve at position u [0, 1];

Parameters:
u - the internal position
Returns:
the curve point

getInternalDimension

public int getInternalDimension()
Description copied from class: AbstractShape
returns the internal dimension of the shape, i.e. 1 if it is a curve, 2 if it is a surface, etc.

Specified by:
getInternalDimension in class AbstractShape
Returns:
the internal dimension