HE_Mesh2014  2.0.11
Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions | Static Private Member Functions | List of all members
wblut.geom.WB_Sphere Class Reference
+ Inheritance diagram for wblut.geom.WB_Sphere:

Public Member Functions

 WB_Sphere ()
 
 WB_Sphere (final WB_Coordinate center, final double radius)
 
boolean equals (final Object o)
 
int hashCode ()
 
WB_GeometryType getType ()
 
WB_Sphere apply (final WB_Transform T)
 
WB_Sphere get ()
 
WB_Point getCenter ()
 
void setCenter (final WB_Coordinate c)
 
double getRadius ()
 
void setRadius (final double r)
 
void growSpherebyPoint (final WB_Point p)
 
WB_Point projectToSphere (final WB_Coordinate v)
 
- Public Member Functions inherited from wblut.geom.WB_Geometry
WB_Geometry apply (WB_Transform T)
 

Static Public Member Functions

static WB_Sphere sphereFromDistantPoints (final WB_Coordinate[] points, final int numPoints)
 
static WB_Sphere ritterSphere (final WB_Point[] points, final int numPoints)
 
static WB_Sphere ritterIterativeSphere (final WB_Point[] points, final int numPoints, final int iter)
 
static WB_Sphere eigenSphere (final WB_Point[] points, final int numPoints)
 
static WB_Sphere ritterEigenSphere (final WB_Point[] points, final int numPoints)
 

Static Public Attributes

static final WB_GeometryFactory geometryfactory
 
- Static Public Attributes inherited from wblut.geom.WB_Geometry
static final WB_GeometryFactory geometryfactory
 

Private Member Functions

int hashCode (final double v)
 

Static Private Member Functions

static int[] extremePointsAlongDirection (final WB_Point[] points, final int numPoints, final WB_Vector dir)
 

Constructor & Destructor Documentation

wblut.geom.WB_Sphere.WB_Sphere ( )
wblut.geom.WB_Sphere.WB_Sphere ( final WB_Coordinate  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)
static WB_Sphere wblut.geom.WB_Sphere.eigenSphere ( final WB_Point[]  points,
final int  numPoints 
)
static

Get Eigensphere enclosing points.

Parameters
pointsWB_Point[]
numPointsnumber of points
Returns
sphere
boolean wblut.geom.WB_Sphere.equals ( final Object  o)
static int [] wblut.geom.WB_Sphere.extremePointsAlongDirection ( final WB_Point[]  points,
final int  numPoints,
final WB_Vector  dir 
)
staticprivate

Extreme points along direction.

Parameters
pointsthe points
numPointsthe num points
dirthe dir
Returns
the int[]
WB_Sphere wblut.geom.WB_Sphere.get ( )

Get copy.

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

Gets the center.

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

Gets the radius.

Returns
the radius
WB_GeometryType wblut.geom.WB_Sphere.getType ( )
Returns

Implements wblut.geom.WB_Geometry.

void wblut.geom.WB_Sphere.growSpherebyPoint ( final WB_Point  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_Point wblut.geom.WB_Sphere.projectToSphere ( final WB_Coordinate  v)

Project point to sphere.

Parameters
vthe v
Returns
point projected to sphere
static WB_Sphere wblut.geom.WB_Sphere.ritterEigenSphere ( final WB_Point[]  points,
final int  numPoints 
)
static

Get Ritter Eigensphere enclosing points.

Parameters
pointsWB_Point[]
numPointsnumber of points
Returns
sphere
static WB_Sphere wblut.geom.WB_Sphere.ritterIterativeSphere ( final WB_Point[]  points,
final int  numPoints,
final int  iter 
)
static

Get iterative Ritter sphere enclosing points.

Parameters
pointsWB_Point[]
numPointsnumber of points
iternumber of iterations (8 should be fine)
Returns
sphere
static WB_Sphere wblut.geom.WB_Sphere.ritterSphere ( final WB_Point[]  points,
final int  numPoints 
)
static

Get Ritter sphere enclosing points.

Parameters
pointsWB_Point[]
numPointsnumber of points
Returns
sphere
void wblut.geom.WB_Sphere.setCenter ( final WB_Coordinate  c)

Sets the center.

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

Sets the radius.

Parameters
rthe new radius
static WB_Sphere wblut.geom.WB_Sphere.sphereFromDistantPoints ( final WB_Coordinate[]  points,
final int  numPoints 
)
static

Approximate sphere enclosing points, calculated from distant points.

Parameters
pointsWB_Point[]
numPointsnumber of points
Returns
sphere

Member Data Documentation

final WB_GeometryFactory wblut.geom.WB_Sphere.geometryfactory
static
Initial value:
= WB_GeometryFactory
.instance()

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