default
tkmath
tkmathtkmath.Vector2dadd(Vector2d v) - Add another vector v to this instance
dot(Vector2d 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 (x, y) of vector
getX() : Double - Get value of x element
getY() : Double - Get value of y element
init(Double a, b) - Initialise values to x=a and y=b
initf(float a, b) - Initialise with single precision values to x=a and x=b
initScaled(Vector2d v, Double s) - Initialise values to s*v
mul(Vector2d v) - Multiply the x element of this instance with the x element of v and do the same with the y element
muld(Double v) - Multiply this instance with scalar value v
New(Double a, b) : Vector2d - Initialise and return new Vector2d instance with x=a and y=b
setX(Double a) - Set x element to a
setY(Double a) - Set y element to a
sub(Vector2d v) - Substract another vector v from this instance
tensor(Vector2d v) : Matrix2d - 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 (x, y) of vector | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method init | |
Initialise values to x=a and y=b | |
Signature | |
Arguments | |
Method initf | |||||||||||||||
Initialise with single precision values to x=a and x=b | |||||||||||||||
Signature | |||||||||||||||
| |||||||||||||||
Arguments | |||||||||||||||
|
Method initScaled | |
Initialise values 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 element | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method muld | |||||
Multiply this instance with scalar value v | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method New | |||
Initialise and return new Vector2d instance with x=a and y=b | |||
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