public class Sphere extends Object implements Projectable, Interceptable
Constructor and Description |
---|
Sphere(double[] center,
double radius) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(double[] v) |
SphereDataObject |
createDataObject()
Creates a new data object or re-uses the old one.
|
double[] |
getCenter() |
List<Intersection> |
getIntersections(double[] origin,
double[] direction) |
Shape |
getProjection(FurrowTransformer transformer) |
double |
getRadius() |
void |
moveBy(double[] delta) |
void |
moveTo(double[] pt) |
void |
setRadius(double r) |
void |
setRadius(double[] pt2) |
void |
update() |
public SphereDataObject createDataObject()
public Shape getProjection(FurrowTransformer transformer)
getProjection
in interface Projectable
public double[] getCenter()
public void setRadius(double r)
public double getRadius()
public void setRadius(double[] pt2)
public void update()
public void moveTo(double[] pt)
public void moveBy(double[] delta)
public List<Intersection> getIntersections(double[] origin, double[] direction)
getIntersections
in interface Interceptable
public boolean contains(double[] v)
contains
in interface Interceptable
Copyright © 2013–2022 Francis Crick Institute. All rights reserved.