Package | Description |
---|---|
jpview | |
jpview.graphics | |
jpview.ptms | |
jpview.transforms |
Modifier and Type | Method and Description |
---|---|
static Vec3f[] |
Utils.intToVec(int[] a)
Int to vec.
|
Modifier and Type | Method and Description |
---|---|
static java.awt.image.BufferedImage |
Utils.createBufferedImage(Vec3f[] pixels,
int scanline)
Creates the buffered image.
|
Modifier and Type | Method and Description |
---|---|
static Vec3f |
Vec3f.convertPixel(int pixel)
Converts a 32 bit pixel value with RGB in the lower 24 bits to a Vec3f
object
|
Vec3f |
Vec3f.cross(Vec3f v)
Returns the cross product of this Vec3f and the Vec3f provided to the
method
|
Vec3f |
Vec3f.diff(Vec3f v)
Returns the difference of two vectors.
|
Vec3f |
Vec3f.normalize()
Normalizes the vector.
|
static Vec3f |
Vec3f.reflect(Vec3f normal,
Vec3f incedent)
Returns a vector representing the reflection of the provided incedent
vector.
|
Vec3f |
Vec3f.scale(float s)
Scales this vector by the provided float value
|
Vec3f |
Vec3f.sum(Vec3f v)
Adds two Vec3f objects together
|
Modifier and Type | Method and Description |
---|---|
Vec3f |
Vec3f.cross(Vec3f v)
Returns the cross product of this Vec3f and the Vec3f provided to the
method
|
Vec3f |
Vec3f.diff(Vec3f v)
Returns the difference of two vectors.
|
float |
Vec3f.dot(Vec3f vector)
Returns the dot product of this Vec3f and the Vec3f provided to the
method
|
boolean |
Vec3f.equals(Vec3f that)
Returns true if this vector is the same as the provided vector
|
int |
EnvironmentMap.getMapIndex(Vec3f normal)
Returns the pixel value indexed by the provided normal in a flat (1D)
pixel buffer
|
int |
EnvironmentMap.getPixel(Vec3f normal)
Returns the pixel indexed by light reflected by the provided normal
|
java.awt.Point |
EnvironmentMap.getPosition(Vec3f normal)
Returns the point on a 2D plane indexed by the provided normal
|
static Vec3f |
Vec3f.reflect(Vec3f normal,
Vec3f incedent)
Returns a vector representing the reflection of the provided incedent
vector.
|
Vec3f |
Vec3f.sum(Vec3f v)
Adds two Vec3f objects together
|
void |
EnvironmentMap.updateMonitor(Vec3f[] normals)
Updates the local monitor (for debugging)
|
Modifier and Type | Method and Description |
---|---|
Vec3f[][] |
RGBPTM.getChannelNormals()
Gets the channel normals.
|
Vec3f[] |
RGBPTM.getNormals() |
Vec3f[] |
PTM.getNormals()
Gets the normals.
|
Vec3f[] |
LRGBPTM.getNormals() |
static Vec3f[] |
HPNormals.getNormals(int[][] coeff)
Gets the normals.
|
static Vec3f[] |
HPNormals.getNormals(LRGBPTM ptm)
Gets the normals.
|
Vec3f[] |
RGBPTM.getNormalsBlue()
Gets the normals blue.
|
Vec3f[] |
RGBPTM.getNormalsGreen()
Gets the normals green.
|
Vec3f[] |
RGBPTM.getNormalsRed()
Gets the normals red.
|
Vec3f |
RGBPTM.normal(int i) |
Vec3f |
PTM.normal(int i)
Normal.
|
Vec3f |
LRGBPTM.normal(int i) |
Vec3f |
RGBPTM.normal(int x,
int y) |
Vec3f |
PTM.normal(int x,
int y)
Normal.
|
Vec3f |
LRGBPTM.normal(int x,
int y) |
Modifier and Type | Field and Description |
---|---|
Vec3f[] |
SpecularOp.normals
The normals.
|