default
tkmath
tkmath
tkmath.Vector3f
add(Vector3f v)
- Add another vector v to this instance
cross(Vector3f v) : Vector3f
- Calculate cross product from this instance and v
dot(Vector3f v) : float
- Calculate dot product from this instance and v
getAbs() : float
- Return length of vector
getAbsSqr() : float
- Return squared length of vector
getString() : String
- Get string representation of vector (x, y, z)
getX() : float
- Get value of x element
getY() : float
- Get value of y element
getZ() : float
- Get value of z element
init(float a, b, c)
- Initialise values to x=a, y=b and z=c
initScalef(Vector3f v, float s)
- Initialise vector to s*v
mul(Vector3f v)
- Multiply the x element of this instance with the x element of v and do the same with the y and z element
mulf(float v)
- Multiply this instance with scalar value v
New(float a, b, c) : Vector3f
- Initialise and return new Vector3f instance with x=a, y=b and z=c
setX(float a)
- Set x element to a
setY(float a)
- Set y element to a
setZ(float a)
- Set z element to a
sub(Vector3f v)
- Substract another vector v from this instance
tensor(Vector3f v) : Matrix3f
- Create resulting matrix of tensor product from this instance and v
triple(Vector3f b, c) : float
- Calculate triple product this.dot(b.cross(c)) (a*(bxc))
unit()
- Set length to 1
unitScale(float 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 getAbs | |||||
Return length of vector | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getAbsSqr | |||||
Return squared length of vector | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getString | |||||
Get string representation of vector (x, y, z) | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getX | |||||
Get value of x element | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getY | |||||
Get value of y element | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getZ | |||||
Get value of z element | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method init | ||||||||||||||||||||
Initialise values to x=a, y=b and z=c | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
|
Method initScalef | |||||||||||||||
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 mulf | |||||
Multiply this instance with scalar value v | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method New | |||||||||||||||||||||||||
Initialise and return new Vector3f instance with x=a, y=b and z=c | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Returns | |||||||||||||||||||||||||
Method setX | |||||
Set x element to a | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method setY | |||||
Set y element to a | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method setZ | |||||
Set z element to a | |||||
Signature | |||||
| |||||
Arguments | |||||
|
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