HE_Mesh  5.1.2
wblut.geom.WB_Sphere Class Reference

Public Member Functions

 WB_Sphere ()
 
 WB_Sphere (final WB_Coord center, final double radius)
 
boolean equals (final Object o)
 
int hashCode ()
 
WB_Sphere apply (final WB_Transform T)
 
WB_Sphere get ()
 
WB_Coord getCenter ()
 
void setCenter (final WB_Coord c)
 
double getRadius ()
 
void setRadius (final double r)
 
void growSpherebyPoint (final WB_Coord p)
 
WB_Coord projectToSphere (final WB_Coord v)
 
boolean contains (final WB_Coord p)
 

Private Member Functions

int hashCode (final double v)
 

Private Attributes

WB_GeometryFactory geometryfactory = new WB_GeometryFactory()
 

Constructor & Destructor Documentation

wblut.geom.WB_Sphere.WB_Sphere ( )
wblut.geom.WB_Sphere.WB_Sphere ( final WB_Coord  center,
final double  radius 
)

Instantiates a new WB_Circle.

Parameters
center
radius

Member Function Documentation

WB_Sphere wblut.geom.WB_Sphere.apply ( final WB_Transform  T)
boolean wblut.geom.WB_Sphere.contains ( final WB_Coord  p)
boolean wblut.geom.WB_Sphere.equals ( final Object  o)
WB_Sphere wblut.geom.WB_Sphere.get ( )

Get copy.

Returns
copy
WB_Coord wblut.geom.WB_Sphere.getCenter ( )

Gets the center.

Returns
the center
double wblut.geom.WB_Sphere.getRadius ( )

Gets the radius.

Returns
the radius
void wblut.geom.WB_Sphere.growSpherebyPoint ( final WB_Coord  p)

Grow sphere to include point.

Parameters
ppoint to include
int wblut.geom.WB_Sphere.hashCode ( )
int wblut.geom.WB_Sphere.hashCode ( final double  v)
private
Parameters
v
Returns
WB_Coord wblut.geom.WB_Sphere.projectToSphere ( final WB_Coord  v)

Project point to sphere.

Parameters
vthe v
Returns
point projected to sphere
void wblut.geom.WB_Sphere.setCenter ( final WB_Coord  c)

Sets the center.

Parameters
cthe new center
void wblut.geom.WB_Sphere.setRadius ( final double  r)

Sets the radius.

Parameters
rthe new radius

Member Data Documentation

WB_GeometryFactory wblut.geom.WB_Sphere.geometryfactory = new WB_GeometryFactory()
private

The documentation for this class was generated from the following file: