|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.chemistry.gui.extended.geometry.GeometryUtils
public class GeometryUtils
A public class that provides mathematical calculation on some geometry entities.
Point3D,
GeoVector| Constructor Summary | |
|---|---|
GeometryUtils()
|
|
| Method Summary | |
|---|---|
static Angle |
angle(Point3D P1,
Point3D O,
Point3D P2)
calculate angle among three points in 3D space note: calling Point3D.distSquare() is more efficient than Point3D.distance(). |
static double |
distance(Point3D P1,
Point3D P2)
calculate distance between two points in 3D space |
static GeoVector3D |
project(GeoVector3D va,
GeoVector3D vb)
return the projection of va on vb |
static GeoVector3D |
subtract(GeoVector3D va,
GeoVector3D vb)
Return a geometric vector that is the result of subtracting second input geometric vector from the first one. |
static GeoVector3D |
sum(GeoVector3D va,
GeoVector3D vb)
Return a geometric vector that is the result of summation of two input geometric vectors |
static Angle |
torsionAngle(Point3D P1,
Point3D P2,
Point3D P3,
Point3D P4)
calculate angle among three points in 3D space note: calling Point3D.distSquare() is more efficient than calling Point3D.distance(). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GeometryUtils()
| Method Detail |
|---|
public static double distance(Point3D P1,
Point3D P2)
P1 - : point 1P2 - : point 2
public static Angle angle(Point3D P1,
Point3D O,
Point3D P2)
x1, - y1, z1 : coordinates of point P1x2, - y2, z2 : coordinates of point Ox3, - y3, z3 : coordinates of point P2
public static Angle torsionAngle(Point3D P1,
Point3D P2,
Point3D P3,
Point3D P4)
x1, - y1, z1 : coordinates of point P1x2, - y2, z2 : coordinates of point Ox3, - y3, z3 : coordinates of point P2
public static GeoVector3D sum(GeoVector3D va,
GeoVector3D vb)
va - first geometric vectorvb - second geometric vector
public static GeoVector3D subtract(GeoVector3D va,
GeoVector3D vb)
va - first geometric vectorvb - second geometric vector
public static GeoVector3D project(GeoVector3D va,
GeoVector3D vb)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||