default
tkmath
tkmathtkmath.Vector4dadd(Vector4d v) - Add another vector v to this instance
dot(Vector4d v) : Double - Calculate dot product from this instance and v
getAbs() : Double - Return length of vector
getAbsSqr() : Double - Return squared length of vector
getString() : String - Get string representation of vector (x, y, z, w)
getW() : Double - Get value of w element
getX() : Double - Get value of x element
getY() : Double - Get value of y element
getZ() : Double - Get value of z element
init(Double a, b, c, d) - Initialise values to x=a, y=b, z=c and w=d
initf(float a, b, c, d) - Initialise values to single precision x=a, y=b, z=c and w=d
initScaled(Vector4d v, Double s) - Initialise vector to s*v
mul(Vector4d v) - Multiply the x element of this instance with the x element of v and do the same with the y, z and w elements
muld(Double v) - Multiply this instance with scalar value v
New(Double a, b, c, d) : Vector4d - Initialise and return new Vector4d instance with x=a, y=b, z=c and w=d
setW(Double a) - Set w element to a
setX(Double a) - Set x element to a
setY(Double a) - Set y element to a
setZ(Double a) - Set z element to a
sub(Vector4d v) - Substract another vector v from this instance
tensor(Vector4d v) : Matrix4f - Create resulting matrix of tensor product from this instance and v
unit() - Set length to 1
unitScale(Double s) - Set length to sMethod add | |||||
Add another vector v to this instance | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method dot | ||||
Calculate dot product from this instance and v | ||||
Signature | ||||
Arguments | ||||
| ||||
Returns | ||||
|
Method getAbsSqr | |||||
Return squared length of vector | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getString | |||||
Get string representation of vector (x, y, z, w) | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method init | |
Initialise values to x=a, y=b, z=c and w=d | |
Signature | |
Arguments | |
Method initf | |||||||||||||||||||||||||
Initialise values to single precision x=a, y=b, z=c and w=d | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
|
Method initScaled | |
Initialise vector to s*v | |
Signature | |
Arguments | |
Method mul | |||||
Multiply the x element of this instance with the x element of v and do the same with the y, z and w elements | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method muld | |||||
Multiply this instance with scalar value v | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method New | |
Initialise and return new Vector4d instance with x=a, y=b, z=c and w=d | |
Signature | |
Arguments | |
Returns | |
Method sub | |||||
Substract another vector v from this instance | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method tensor | ||||
Create resulting matrix of tensor product from this instance and v | ||||
Signature | ||||
Arguments | ||||
| ||||
Returns | ||||
|
Method unit | |||
Set length to 1 | |||
Signature | |||
|
Method unitScale | |||||
Set length to s | |||||
Signature | |||||
| |||||
Arguments | |||||
|
auto-generated by "DOG", the TkScript document generator. Mon, 28/Dec/2015 13:15:54