public class CalcPoint extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
center(javax.vecmath.Point3d[] x)
Center a cloud of points.
|
static javax.vecmath.Point3d |
centroid(javax.vecmath.Point3d[] x)
Calculate the centroid of the point cloud.
|
static javax.vecmath.Point3d[] |
clonePoint3dArray(javax.vecmath.Point3d[] x)
Clone an array of points.
|
static Matrix |
formMatrix(javax.vecmath.Point3d[] a,
javax.vecmath.Point3d[] b)
Peter can you document this method? TODO
|
static void |
transform(javax.vecmath.Matrix4d rotTrans,
javax.vecmath.Point3d[] x)
Transform all points with a 4x4 transformation matrix.
|
static void |
translate(javax.vecmath.Point3d trans,
javax.vecmath.Point3d[] x)
Translate all points with a translation vector.
|
public static void center(javax.vecmath.Point3d[] x)
x - array of points. Point objects will be modifiedpublic static javax.vecmath.Point3d centroid(javax.vecmath.Point3d[] x)
x - array of points. Point objects will not be modifiedpublic static void transform(javax.vecmath.Matrix4d rotTrans,
javax.vecmath.Point3d[] x)
rotTrans - 4x4 transformation matrixarray - of points. Point objects will be modifiedpublic static void translate(javax.vecmath.Point3d trans,
javax.vecmath.Point3d[] x)
rotTrans - 4x4 transformation matrixarray - of points. Point objects will be modifiedpublic static javax.vecmath.Point3d[] clonePoint3dArray(javax.vecmath.Point3d[] x)
x - original array of points. Point objects will not be modifiedpublic static Matrix formMatrix(javax.vecmath.Point3d[] a, javax.vecmath.Point3d[] b)
a - b - Copyright © 2000–2016 BioJava. All rights reserved.