|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectus.ihmc.utilities.math.geometry.Sphere3d
public class Sphere3d
Field Summary | |
---|---|
javax.vecmath.Vector3d |
temporaryVector
|
Constructor Summary | |
---|---|
Sphere3d()
|
|
Sphere3d(double radius)
|
|
Sphere3d(javax.vecmath.Point3d center,
double radius)
|
|
Sphere3d(Sphere3d sphere3d)
|
Method Summary | |
---|---|
void |
applyTransform(javax.media.j3d.Transform3D transform3D)
Apply the given transform to translate and rotate this shape. |
Sphere3d |
applyTransformCopy(javax.media.j3d.Transform3D transformation)
Create a copy of this shape, then apply the given transform to translate and rotate the copy. |
double |
distance(javax.vecmath.Point3d point)
Find the distance from the closest point on this shape to the given point. |
void |
getCenter(javax.vecmath.Point3d centerToPack)
|
javax.vecmath.Point3d |
getCenterCopy()
|
void |
getClosestPointAndNormalAt(javax.vecmath.Point3d closestPointToPack,
javax.vecmath.Vector3d normalToPack,
javax.vecmath.Point3d pointInWorldToCheck)
Find the closest point on the surface of this shape to the given point as well as the surface normal at that point. |
double |
getRadius()
|
boolean |
isInsideOrOnSurface(javax.vecmath.Point3d pointToCheck)
Determine whether the given point is on or inside the surface of this shape. |
boolean |
isInsideOrOnSurface(javax.vecmath.Point3d pointToCheck,
double epsilon)
Determine whether the given point is on or inside the surface of this shape, within a given tolerance or error level. |
void |
orthogonalProjection(javax.vecmath.Point3d point)
Find the closest point on the surface of this shape to the given point. |
javax.vecmath.Point3d |
orthogonalProjectionCopy(javax.vecmath.Point3d point)
Find the closest point on the surface of this shape to the given point. |
void |
set(Sphere3d sphere3d)
|
void |
setRadius(double radius)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final javax.vecmath.Vector3d temporaryVector
Constructor Detail |
---|
public Sphere3d()
public Sphere3d(double radius)
public Sphere3d(javax.vecmath.Point3d center, double radius)
public Sphere3d(Sphere3d sphere3d)
Method Detail |
---|
public double getRadius()
public void setRadius(double radius)
public void getCenter(javax.vecmath.Point3d centerToPack)
public javax.vecmath.Point3d getCenterCopy()
public void set(Sphere3d sphere3d)
public void applyTransform(javax.media.j3d.Transform3D transform3D)
Shape3d
applyTransform
in interface Shape3d
public Sphere3d applyTransformCopy(javax.media.j3d.Transform3D transformation)
Shape3d
applyTransformCopy
in interface Shape3d
public boolean isInsideOrOnSurface(javax.vecmath.Point3d pointToCheck)
Shape3d
isInsideOrOnSurface
in interface Shape3d
public boolean isInsideOrOnSurface(javax.vecmath.Point3d pointToCheck, double epsilon)
Shape3d
isInsideOrOnSurface
in interface Shape3d
public double distance(javax.vecmath.Point3d point)
Shape3d
distance
in interface Shape3d
public void orthogonalProjection(javax.vecmath.Point3d point)
Shape3d
orthogonalProjection
in interface Shape3d
point
- both an input parameter (the point to check),
and an output parameter (packed with the resulting ortho point).public javax.vecmath.Point3d orthogonalProjectionCopy(javax.vecmath.Point3d point)
Shape3d
orthogonalProjectionCopy
in interface Shape3d
public void getClosestPointAndNormalAt(javax.vecmath.Point3d closestPointToPack, javax.vecmath.Vector3d normalToPack, javax.vecmath.Point3d pointInWorldToCheck)
Shape3d
getClosestPointAndNormalAt
in interface Shape3d
closestPointToPack
- out parameter packed with the resulting closest point on the shapenormalToPack
- out parameter packed with the resulting normal vectorpublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |