edu.stanford.rsl.konrad.geometry.shapes.simple
Class Cone
java.lang.Object
edu.stanford.rsl.konrad.geometry.AbstractShape
edu.stanford.rsl.konrad.geometry.AbstractSurface
edu.stanford.rsl.konrad.geometry.shapes.simple.SimpleSurface
edu.stanford.rsl.konrad.geometry.shapes.simple.QuadricSurface
edu.stanford.rsl.konrad.geometry.shapes.simple.Cone
- All Implemented Interfaces:
- Transformable, java.io.Serializable
- Direct Known Subclasses:
- ForbildCone
public class Cone
- extends QuadricSurface
Creates a Cone.
- Author:
- Rotimi X Ojo
- See Also:
- Serialized Form
Constructor Summary |
Cone()
|
Cone(double dx,
double dy,
double dz)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Cone
public Cone()
Cone
public Cone(double dx,
double dy,
double dz)
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.
getDimension
public int getDimension()
- Description copied from class:
AbstractShape
- Returns the external dimension of the shape.
- Overrides:
getDimension
in class QuadricSurface
- Returns:
- the dimension
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