|
JavaView® v2.12 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--jv.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. |
| Constructor Summary | |
PdBaryDir()
Construct empty class. |
|
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'. |
static PdBaryDir |
copyNew(PdBaryDir v)
Create a new vector as clone of argument vector. |
int |
getSize()
Get dimension of barycentric vector. |
static void |
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 |
sub(PdBary x,
PdBary 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, getName, hasTag, setName, setTag |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
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 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 int getSize()
public int setSize(int aSize)
new - number of components of vectorpublic void validate()
public void multScalar(double scalar)
public static void getVector(PdVector p,
PdBaryDir bary,
PdVector v0,
PdVector v1,
PdVector v2)
public void sub(PdBary x,
PdBary y)
|
JavaView® v2.12 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||