|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.javagl.simplemesh.utils.Vertices
public class Vertices
Utility methods for modifying and obtaining information about vertices
Method Summary | |
---|---|
static float |
computeMaxX(java.lang.Iterable<? extends Vertex> vertices)
Compute the maximum x-coordinate of the given vertices |
static float |
computeMaxY(java.lang.Iterable<? extends Vertex> vertices)
Compute the maximum y-coordinate of the given vertices |
static float |
computeMaxZ(java.lang.Iterable<? extends Vertex> vertices)
Compute the maximum z-coordinate of the given vertices |
static float |
computeMinX(java.lang.Iterable<? extends Vertex> vertices)
Compute the minimum x-coordinate of the given vertices |
static float |
computeMinY(java.lang.Iterable<? extends Vertex> vertices)
Compute the minimum y-coordinate of the given vertices |
static float |
computeMinZ(java.lang.Iterable<? extends Vertex> vertices)
Compute the minimum z-coordinate of the given vertices |
static float |
distance(Vertex v0,
Vertex v1)
Returns the distance between the given vertices |
static float |
distanceSquared(Vertex v0,
Vertex v1)
Returns the squared distance between the given vertices |
static void |
scale(java.lang.Iterable<? extends Vertex> vertices,
float scale)
Scale the given vertices with the given factor |
static void |
translate(java.lang.Iterable<? extends Vertex> vertices,
float dx,
float dy,
float dz)
Translate the given vertices by the given amount |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void scale(java.lang.Iterable<? extends Vertex> vertices, float scale)
vertices
- The verticesscale
- The scale factorpublic static void translate(java.lang.Iterable<? extends Vertex> vertices, float dx, float dy, float dz)
vertices
- The verticesdx
- The x movementdy
- The y movementdz
- The z movementpublic static float distanceSquared(Vertex v0, Vertex v1)
v0
- The first vertexv1
- The second vertex
public static float distance(Vertex v0, Vertex v1)
v0
- The first vertexv1
- The second vertex
public static float computeMinX(java.lang.Iterable<? extends Vertex> vertices)
vertices
- The vertices
public static float computeMinY(java.lang.Iterable<? extends Vertex> vertices)
vertices
- The vertices
public static float computeMinZ(java.lang.Iterable<? extends Vertex> vertices)
vertices
- The vertices
public static float computeMaxX(java.lang.Iterable<? extends Vertex> vertices)
vertices
- The vertices
public static float computeMaxY(java.lang.Iterable<? extends Vertex> vertices)
vertices
- The vertices
public static float computeMaxZ(java.lang.Iterable<? extends Vertex> vertices)
vertices
- The vertices
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |