HE_Mesh
6.0.1
|
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() |
wblut.geom.WB_Sphere.WB_Sphere | ( | ) |
References wblut.geom.WB_GeometryFactory3D.createPoint().
wblut.geom.WB_Sphere.WB_Sphere | ( | final WB_Coord | center, |
final double | radius | ||
) |
Instantiates a new WB_Circle.
center | |
radius |
References wblut.geom.WB_GeometryFactory3D.createPoint(), and wblut.math.WB_Math.fastAbs().
WB_Sphere wblut.geom.WB_Sphere.apply | ( | final WB_Transform | T | ) |
boolean wblut.geom.WB_Sphere.contains | ( | final WB_Coord | p | ) |
References wblut.geom.WB_Vector.getSqDistance().
boolean wblut.geom.WB_Sphere.equals | ( | final Object | o | ) |
WB_Sphere wblut.geom.WB_Sphere.get | ( | ) |
WB_Coord wblut.geom.WB_Sphere.getCenter | ( | ) |
Gets the center.
double wblut.geom.WB_Sphere.getRadius | ( | ) |
Gets the radius.
void wblut.geom.WB_Sphere.growSpherebyPoint | ( | final WB_Coord | p | ) |
Grow sphere to include point.
p | point to include |
References wblut.geom.WB_Point.addSelf(), wblut.geom.WB_Vector.getSqLength(), wblut.geom.WB_Point.subToVector3D(), wblut.geom.WB_MutableCoordinate.xd(), wblut.geom.WB_MutableCoordinate.yd(), and wblut.geom.WB_MutableCoordinate.zd().
int wblut.geom.WB_Sphere.hashCode | ( | ) |
References wblut.geom.WB_Point.hashCode().
|
private |
v |
Project point to sphere.
v | the v |
References wblut.geom.WB_Point.addMul(), wblut.math.WB_Epsilon.isZero(), wblut.geom.WB_Point.normalizeSelf(), and wblut.geom.WB_Point.sub().
void wblut.geom.WB_Sphere.setCenter | ( | final WB_Coord | c | ) |
Sets the center.
c | the new center |
void wblut.geom.WB_Sphere.setRadius | ( | final double | r | ) |
Sets the radius.
r | the new radius |
|
private |