|
JavaView© v3.95.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjv.vecmath.P_Vector
jv.vecmath.PdBaryDir
Barycentric tangent vector of arbitrary dimension, sum of entries must be 0. Internal array length is equal to barycentric dimension.
| Field Summary | |
double[] |
m_data
Array with barycentric coordinates, sum of entries must be 1. |
static PdBaryDir[] |
TRIANGLE_EDGE
Positive oriented edges. |
| Constructor Summary | |
PdBaryDir()
Construct empty class with zero size. |
|
PdBaryDir(double x,
double y)
Construct class with dimension=2 and given initial values. |
|
PdBaryDir(double x,
double y,
double z)
Construct class with dimension=3 and given initial values. |
|
PdBaryDir(double x,
double y,
double z,
double w)
Construct class with dimension=4 and given initial values. |
|
PdBaryDir(int aSize)
Construct class with given dimension. |
|
| Method Summary | |
java.lang.Object |
clone()
Duplicate vector and data array. |
void |
copy(PdBaryDir vec)
Copies argument vector into 'this', and possibly adjusts size of 'this'. |
void |
copyArray(PdBaryDir vec)
Copies only data (no flags) of argument vector into 'this', and possibly adjusts size of 'this'. |
static PdBaryDir |
copyNew(PdBaryDir v)
Create a new vector as clone of argument vector. |
static PdBaryDir |
getBaryDir(PdBaryDir baryout,
PdVector dir,
PdVector v0,
PdVector v1,
PdVector v2)
Get barycentric direction in triangle given by points. |
static PdBaryDir |
getBaryDir(PdBaryDir baryout,
PdVector dir,
PdVector v0,
PdVector v1,
PdVector v2,
PdVector temp)
Get barycentric direction in triangle given by points. |
int |
getSize()
Get dimension of barycentric vector. |
static PdVector |
getVector(PdVector p,
PdBaryDir bary,
PdVector v0,
PdVector v1,
PdVector v2)
Get vector from barycentric direction in a triangle. |
void |
multScalar(double scalar)
Multiply all components with scalar. |
int |
setSize(int aSize)
Set dimension of barycentric vector, i.e. length of its data array. |
void |
setZero()
Set all entries to a constant zero value. |
void |
sub(PdBary x,
PdBary y)
Compute this = x-y. |
java.lang.String |
toShortString()
Create a single-line string representation of the vector components and attributes. |
java.lang.String |
toString()
Create a multi-line string representation with detailed information about all instance variables. |
void |
validate()
Check sum of barycentric coordinates, and adjust if sum is not zero. |
| Methods inherited from class jv.vecmath.P_Vector |
clearTag, clone, clone, copy, getBits, getDetail, getName, getURL, hasTag, invert, setDetail, setName, setTag, setURL |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final PdBaryDir[] TRIANGLE_EDGE
public double[] m_data
| Constructor Detail |
public PdBaryDir()
public PdBaryDir(int aSize)
public PdBaryDir(double x,
double y)
public PdBaryDir(double x,
double y,
double z)
public PdBaryDir(double x,
double y,
double z,
double w)
| Method Detail |
public void setZero()
public java.lang.String toString()
toString in class P_VectortoShortString()public java.lang.String toShortString()
toString()public java.lang.Object clone()
copyNew(PdBaryDir).
copyNew(PdBaryDir)public static PdBaryDir copyNew(PdBaryDir v)
v - source vector to clonepublic void copy(PdBaryDir vec)
vec - the vector to be copiedpublic void copyArray(PdBaryDir vec)
vec - the vector to be copiedpublic int getSize()
public int setSize(int aSize)
aSize - new number of components of vector
public void validate()
public void multScalar(double scalar)
public static PdVector getVector(PdVector p,
PdBaryDir bary,
PdVector v0,
PdVector v1,
PdVector v2)
p - output, may be null; a new vector is returned in this case
bary. Same as p
if that is not null.
public static PdBaryDir getBaryDir(PdBaryDir baryout,
PdVector dir,
PdVector v0,
PdVector v1,
PdVector v2)
baryout - output, may be null; a new barycentric vector is returned in this case
dir. Same as baryout
if that is not null.
public static PdBaryDir getBaryDir(PdBaryDir baryout,
PdVector dir,
PdVector v0,
PdVector v1,
PdVector v2,
PdVector temp)
baryout - may be null; a new barycentric vector is returned in this casetemp - used as buffer, may be null (is allocated automatically in this case)
dir. Same as baryout
if that is not null.
public void sub(PdBary x,
PdBary y)
|
JavaView© v3.95.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||