Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

joelib.gui.molviewer.java3d.math.geometry
Class Geometry  view Geometry download Geometry.java

java.lang.Object
  extended byjoelib.gui.molviewer.java3d.math.geometry.Geometry

public class Geometry
extends java.lang.Object

A public class that provides mathematical calculation on some geometry entities.


Constructor Summary
Geometry()
           
 
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

Geometry

public Geometry()
Method Detail

angle

public 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().


distance

public static double distance(Point3D P1,
                              Point3D P2)
calculate distance between two points in 3D space


project

public static GeoVector3D project(GeoVector3D va,
                                  GeoVector3D vb)
return the projection of va on vb


subtract

public 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.


sum

public static GeoVector3D sum(GeoVector3D va,
                              GeoVector3D vb)
Return a geometric vector that is the result of summation of two input geometric vectors


torsionAngle

public 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().