| Constructor and Description |
|---|
Vertices() |
| Modifier and Type | Method and Description |
|---|---|
long |
add(double x,
double y,
double z,
double nx,
double ny,
double nz,
double u,
double v)
Adds a vertex.
|
long |
addf(float x,
float y,
float z,
float nx,
float ny,
float nz,
float u,
float v)
Adds a vertex.
|
Mesh |
mesh()
The mesh to which the collection of vertices belongs.
|
double |
nx(long vIndex)
X coordinate of vertex normal, as a double.
|
float |
nxf(long vIndex)
X coordinate of vertex normal, as a float.
|
double |
ny(long vIndex)
Y coordinate of vertex normal, as a double.
|
float |
nyf(long vIndex)
Y coordinate of vertex normal, as a float.
|
double |
nz(long vIndex)
Z coordinate of vertex normal, as a double.
|
float |
nzf(long vIndex)
Z coordinate of vertex normal, as a float.
|
void |
set(long vIndex,
double x,
double y,
double z,
double nx,
double ny,
double nz,
double u,
double v)
Overwrites a vertex's position, normal and texture coordinates.
|
void |
setf(long vIndex,
float x,
float y,
float z,
float nx,
float ny,
float nz,
float u,
float v)
Overwrites a vertex's position, normal and texture coordinates.
|
void |
setNormal(long vIndex,
double nx,
double ny,
double nz)
Overwrites a vertex's normal.
|
void |
setNormalf(long vIndex,
float nx,
float ny,
float nz)
Overwrites a vertex's normal.
|
void |
setPosition(long vIndex,
double x,
double y,
double z)
Overwrites a vertex's position.
|
void |
setPositionf(long vIndex,
float x,
float y,
float z)
Overwrites a vertex's position.
|
void |
setTexture(long vIndex,
double u,
double v)
Overwrites a vertex's texture coordinates.
|
void |
setTexturef(long vIndex,
float u,
float v)
Overwrites a vertex's texture coordinates.
|
long |
size()
Number of vertices in the collection.
|
double |
u(long vIndex)
U value of vertex texture coordinate, as a double.
|
float |
uf(long vIndex)
U value of vertex texture coordinate, as a float.
|
double |
v(long vIndex)
V value of vertex texture coordinate, as a double.
|
float |
vf(long vIndex)
V value of vertex texture coordinate, as a float.
|
double |
x(long vIndex)
X position of a vertex, as a double.
|
float |
xf(long vIndex)
X position of a vertex, as a float.
|
double |
y(long vIndex)
Y position of a vertex, as a double.
|
float |
yf(long vIndex)
Y position of a vertex, as a float.
|
double |
z(long vIndex)
Z position of a vertex, as a double.
|
float |
zf(long vIndex)
Z position of a vertex, as a float.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic Mesh mesh()
Verticespublic long size()
Verticespublic double x(long vIndex)
Verticespublic double y(long vIndex)
Verticespublic double z(long vIndex)
Verticespublic double nx(long vIndex)
Verticespublic double ny(long vIndex)
Verticespublic double nz(long vIndex)
Verticespublic double u(long vIndex)
Verticespublic double v(long vIndex)
Verticespublic long add(double x,
double y,
double z,
double nx,
double ny,
double nz,
double u,
double v)
Verticesadd in interface Verticesx - X position of the vertex.y - Y position of the vertex.z - Z position of the vertex.nx - X coordinate of the vertex's normal.ny - Y coordinate of the vertex's normal.nz - Z coordinate of the vertex's normal.u - U value of vertex texture coordinate.v - V value of vertex texture coordinate.public void set(long vIndex,
double x,
double y,
double z,
double nx,
double ny,
double nz,
double u,
double v)
Verticesset in interface VerticesvIndex - Index of vertex to overwrite.x - X position of the vertex.y - Y position of the vertex.z - Z position of the vertex.nx - X coordinate of the vertex's normal.ny - Y coordinate of the vertex's normal.nz - Z coordinate of the vertex's normal.u - U value of vertex texture coordinate.v - V value of vertex texture coordinate.public void setPosition(long vIndex,
double x,
double y,
double z)
VerticessetPosition in interface VerticesvIndex - Index of vertex to overwrite.x - X position of the vertex.y - Y position of the vertex.z - Z position of the vertex.public void setNormal(long vIndex,
double nx,
double ny,
double nz)
Verticespublic void setTexture(long vIndex,
double u,
double v)
VerticessetTexture in interface VerticesvIndex - Index of vertex to overwrite.u - U value of vertex texture coordinate.v - V value of vertex texture coordinate.public float xf(long vIndex)
Verticespublic float yf(long vIndex)
Verticespublic float zf(long vIndex)
Verticespublic float nxf(long vIndex)
Verticespublic float nyf(long vIndex)
Verticespublic float nzf(long vIndex)
Verticespublic float uf(long vIndex)
Verticespublic float vf(long vIndex)
Verticespublic long addf(float x,
float y,
float z,
float nx,
float ny,
float nz,
float u,
float v)
Verticesaddf in interface Verticesx - X position of the vertex.y - Y position of the vertex.z - Z position of the vertex.nx - X coordinate of the vertex's normal.ny - Y coordinate of the vertex's normal.nz - Z coordinate of the vertex's normal.u - U value of vertex texture coordinate.v - V value of vertex texture coordinate.public void setf(long vIndex,
float x,
float y,
float z,
float nx,
float ny,
float nz,
float u,
float v)
Verticessetf in interface VerticesvIndex - Index of vertex to overwrite.x - X position of the vertex.y - Y position of the vertex.z - Z position of the vertex.nx - X coordinate of the vertex's normal.ny - Y coordinate of the vertex's normal.nz - Z coordinate of the vertex's normal.u - U value of vertex texture coordinate.v - V value of vertex texture coordinate.public void setPositionf(long vIndex,
float x,
float y,
float z)
VerticessetPositionf in interface VerticesvIndex - Index of vertex to overwrite.x - X position of the vertex.y - Y position of the vertex.z - Z position of the vertex.public void setNormalf(long vIndex,
float nx,
float ny,
float nz)
VerticessetNormalf in interface VerticesvIndex - Index of vertex to overwrite.nx - X coordinate of the vertex's normal.ny - Y coordinate of the vertex's normal.nz - Z coordinate of the vertex's normal.public void setTexturef(long vIndex,
float u,
float v)
VerticessetTexturef in interface VerticesvIndex - Index of vertex to overwrite.u - U value of vertex texture coordinate.v - V value of vertex texture coordinate.Copyright © 2014–2022 ImageJ. All rights reserved.