public class Utils3D extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static double |
angle(Point3D a,
Point3D b)
Returns the angle between the two vectors.
|
static double |
length(Point3D v)
Returns the length of the vector v.
|
static Point3D |
normal(Point3D a,
Point3D b,
Point3D c)
Returns the normal vector for the plane defined by three points.
|
static Point3D |
normalise(Point3D v)
Returns a new vector that is the normalised form of the specified
vector.
|
static double |
scalarprod(Point3D a,
Point3D b)
Returns the scalar product of two vectors.
|
public static double length(Point3D v)
v - the vector (null not permitted).public static Point3D normalise(Point3D v)
v - the vector (null not permitted).public static double scalarprod(Point3D a, Point3D b)
a - vector A (null not permitted).b - vector B (null not permitted).public static Point3D normal(Point3D a, Point3D b, Point3D c)
a - point A (null not permitted).b - point B (null not permitted).c - point C (null not permitted).