edu.stanford.rsl.konrad.geometry.shapes.simple
Class Ellipsoid

java.lang.Object
  extended by edu.stanford.rsl.konrad.geometry.AbstractShape
      extended by edu.stanford.rsl.konrad.geometry.AbstractSurface
          extended by edu.stanford.rsl.konrad.geometry.shapes.simple.SimpleSurface
              extended by edu.stanford.rsl.konrad.geometry.shapes.simple.QuadricSurface
                  extended by edu.stanford.rsl.konrad.geometry.shapes.simple.Ellipsoid
All Implemented Interfaces:
Transformable, java.io.Serializable
Direct Known Subclasses:
ForbildEllipsoid

public class Ellipsoid
extends QuadricSurface

Creates an Ellipsoid

Author:
Rotimi X Ojo
See Also:
Serialized Form

Field Summary
static long serialVersionUID
           
 
Constructor Summary
Ellipsoid()
           
Ellipsoid(double dx, double dy, double dz)
           
Ellipsoid(double dx, double dy, double dz, AffineTransform transform)
           
 
Method Summary
 Axis getPrincipalAxis()
           
 PointND[] getRasterPoints(int number)
          Rasters the shape with a given number of points or less.
 boolean isBounded()
          Returns true if the shape is of limited space
 
Methods inherited from class edu.stanford.rsl.konrad.geometry.shapes.simple.QuadricSurface
applyTransform, evaluate, getDimension, getHits, getHitsOnBoundingBox, isMember
 
Methods inherited from class edu.stanford.rsl.konrad.geometry.shapes.simple.SimpleSurface
addAllBoundingConditions, addBoundingCondition, evaluate, getChangeOfAxisMatrix, getInternalDimension, getTransform, intersect
 
Methods inherited from class edu.stanford.rsl.konrad.geometry.AbstractShape
getHitsOnBoundingBox_slow, getMax, getMin
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

Ellipsoid

public Ellipsoid()

Ellipsoid

public Ellipsoid(double dx,
                 double dy,
                 double dz)

Ellipsoid

public Ellipsoid(double dx,
                 double dy,
                 double dz,
                 AffineTransform transform)
Method Detail

isBounded

public boolean isBounded()
Description copied from class: AbstractShape
Returns true if the shape is of limited space

Specified by:
isBounded in class QuadricSurface
Returns:
Boundedness of this shape.

getRasterPoints

public PointND[] getRasterPoints(int number)
Description copied from class: AbstractShape
Rasters the shape with a given number of points or less. If the shape is not bounded null is returned.

Overrides:
getRasterPoints in class QuadricSurface
Parameters:
number - the number of points
Returns:
the raster points

getPrincipalAxis

public Axis getPrincipalAxis()
Specified by:
getPrincipalAxis in class SimpleSurface