|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectus.ihmc.utilities.math.geometry.Ramp3d
public class Ramp3d
Constructor Summary | |
---|---|
Ramp3d(double width,
double length,
double height)
|
|
Ramp3d(Ramp3d ramp3d)
|
|
Ramp3d(javax.media.j3d.Transform3D transform,
double width,
double length,
double height)
|
Method Summary | |
---|---|
void |
applyTransform(javax.media.j3d.Transform3D transform)
Apply the given transform to translate and rotate this shape. |
Ramp3d |
applyTransformCopy(javax.media.j3d.Transform3D transform)
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 |
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 |
getHeight()
|
double |
getLength()
|
double |
getRampIncline()
|
javax.vecmath.Vector3d |
getSurfaceNormal()
|
javax.media.j3d.Transform3D |
getTransform()
|
double |
getWidth()
|
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 pointToCheckAndPack)
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(Ramp3d ramp3d)
|
void |
setHeight(double height)
|
void |
setLength(double length)
|
void |
setTransform(javax.media.j3d.Transform3D newTransform)
|
void |
setWidth(double width)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Ramp3d(double width, double length, double height)
public Ramp3d(javax.media.j3d.Transform3D transform, double width, double length, double height)
public Ramp3d(Ramp3d ramp3d)
Method Detail |
---|
public void set(Ramp3d ramp3d)
public double getWidth()
public void setWidth(double width)
public double getHeight()
public void setHeight(double height)
public double getLength()
public void setLength(double length)
public javax.media.j3d.Transform3D getTransform()
public void setTransform(javax.media.j3d.Transform3D newTransform)
public javax.vecmath.Vector3d getSurfaceNormal()
public double getRampIncline()
public void applyTransform(javax.media.j3d.Transform3D transform)
Shape3d
applyTransform
in interface Shape3d
public Ramp3d applyTransformCopy(javax.media.j3d.Transform3D transform)
Shape3d
applyTransformCopy
in interface Shape3d
public java.lang.String toString()
toString
in class java.lang.Object
public double distance(javax.vecmath.Point3d point)
Shape3d
distance
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 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 void orthogonalProjection(javax.vecmath.Point3d pointToCheckAndPack)
Shape3d
orthogonalProjection
in interface Shape3d
pointToCheckAndPack
- 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |