default
tkmath
tkmathtkmath.Vector3dadd(Vector3d v) - Add another vector v to this instance
cross(Vector3d v) : Vector3d - Calculate cross product from this instance and v
dot(Vector3d 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)
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) - Initialise values to x=a, y=b and z=c
initf(float a, b, c) - Initialise values to single precision x=a, y=b and z=c
initScaled(Vector3d v, Double s) - Initialise vector to s*v
mul(Vector3d v) - Multiply the x element of this instance with the x element of v and do the same with the y and z element
muld(Double v) - Multiply this instance with scalar value v
New(Double a, b, c) : Vector3d - Initialise and return new Vector3d instance with x=a, y=b and z=c
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(Vector3d v) - Substract another vector v from this instance
tensor(Vector3d v) : Matrix3d - Create resulting matrix of tensor product from this instance and v
triple(Vector3d b, c) : Double - Calculate triple product this.dot(b.cross(c)) (a*(bxc))
unit() - Set length to 1
unitScale(Double s) - Set length to sMethod add | |||||
Add another vector v to this instance | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method cross | ||||
Calculate cross product from this instance and v | ||||
Signature | ||||
Arguments | ||||
| ||||
Returns | ||||
|
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) | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method init | |
Initialise values to x=a, y=b and z=c | |
Signature | |
Arguments | |
Method initf | ||||||||||||||||||||
Initialise values to single precision x=a, y=b and z=c | ||||||||||||||||||||
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 and z element | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method muld | |||||
Multiply this instance with scalar value v | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method New | |
Initialise and return new Vector3d instance with x=a, y=b and z=c | |
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 triple | |||
Calculate triple product this.dot(b.cross(c)) (a*(bxc)) | |||
Signature | |||
Arguments | |||
Returns | |||
| |||
Description | |||
ærg b second parameter of triple product arg c third parameter of triple product |
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