Modifier and Type | Method and Description |
---|---|
Vertex3D |
BoundingSphere.getCenter() |
Vertex3D |
Vertex3D.midpoint(Vertex3D v)
Calculates the midpoint between this vertex and another.
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<Vertex3D> |
SphereApproximator.getFaces() |
java.util.ArrayList<Vertex3D> |
ShapeDescriptor.getPoints() |
java.util.ArrayList<Vertex3D> |
Model3D.getVertices() |
java.util.ArrayList<Vertex3D> |
SphereApproximator.getVerts() |
java.util.ArrayList<Vertex3D> |
SphereApproximator.getVertsScaled(double radius) |
Modifier and Type | Method and Description |
---|---|
void |
Vertex3D.add(Vertex3D v)
Elementwise addition of another vertex to this one.
|
double |
Vertex3D.distanceTo(Vertex3D v)
The distance between this vertex and another.
|
boolean |
Vertex3D.equals(Vertex3D v)
Elemenwise comparison of equality between this vertex and another.
|
Vertex3D |
Vertex3D.midpoint(Vertex3D v)
Calculates the midpoint between this vertex and another.
|
double |
Vertex3D.sqDistanceTo(Vertex3D v)
The squared distance from this vertex to another.
|
void |
Vertex3D.sub(Vertex3D v)
Elementwise subtraction of another vertex from this one.
|
Modifier and Type | Method and Description |
---|---|
static void |
Model3D.applyPcaTransform(java.util.ArrayList<Vertex3D> points)
Rotates a set points so that they're aligned with the pricipal components of
the set.
|
static void |
Model3D.applyPcaTransform(java.util.ArrayList<Vertex3D> points,
double[][] pcaBasis)
Rotates a set points so that they're aligned with the pricipal components of
the set, given a PCA basis.
|
static BoundingSphere |
BoundingSphere.boundingBox(java.util.ArrayList<Vertex3D> vertices)
Calculates a bounding sphere for a group of points in
3D space using the bounding box.
|
static double |
Model3D.furthestPoint(java.util.ArrayList<Vertex3D> points)
Finds furthest point from the origin.
|
static void |
Model3D.readPointsFromFile(java.lang.String filename,
java.util.ArrayList<Vertex3D> vertices)
Reads in a model file and returns the vertices as an ArrayList of Vertex3D objects.
|
static void |
Model3D.rescale(double radius,
java.util.ArrayList<Vertex3D> points)
Rescales a set of points in 3D space in respect to the origin.
|
static void |
Model3D.rescaleByMean(double radius,
java.util.ArrayList<Vertex3D> points)
Rescales a set of points in 3D space in respect to the origin.
|
static void |
Model3D.subtractMeans(java.util.ArrayList<Vertex3D> points)
Subtracts the means from each dimension so that each dimension has mean of zero.
|
void |
BoundingSphere.toOrigin(java.util.ArrayList<Vertex3D> points)
Shifts points to origin by bounding sphere center.
|
static void |
Model3D.writePointsToFile(java.lang.String filename,
java.util.ArrayList<Vertex3D> vertices)
Writes a set of model vertices to a file, where each line is a vertex "x y z".
|
Constructor and Description |
---|
Vertex3D(Vertex3D v)
Copy constuctor.
|
Constructor and Description |
---|
QuadraticFormDistance(java.util.ArrayList<Vertex3D> form,
double theta)
Constructs object with the information required for QFD calculations.
|