Class Index | File Index

Classes


Class V3

extends the mjs V3 class
Defined in: mjs.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
V3()
extensions for the mjs.js library
Method Summary
Method Attributes Method Name and Description
<static>  
V3.direction(a, b, r)
the original direction function returned the direction from b to a, instead of a to b as stated in the comment.
<static>  
V3.equal(a, b, epsilon)
<static>  
V3.equalScalar(a, b, epsilon)
from http://stackoverflow.com/questions/4915462/how-should-i-do-floating-point-comparison
<static>  
V3.transform(a, b)
Function: V3.transform Parameters: a - the first vector operand b - the transformation matrix Returns: transformed vector
Class Detail
V3()
extensions for the mjs.js library
Author: Markus Sch�tz.
Method Detail
<static> V3.direction(a, b, r)
the original direction function returned the direction from b to a, instead of a to b as stated in the comment. Function: V3.direction Perform r = (a - b) / |a - b|. The result is the normalized direction from a to b. Parameters: a - the first vector operand b - the second vector operand r - optional vector to store the result in Returns: If r is specified, returns r after performing the operation. Otherwise, returns a new 3-element vector with the result.
Parameters:
a
b
r

<static> V3.equal(a, b, epsilon)
Parameters:
a
b
epsilon

<static> {Boolean} V3.equalScalar(a, b, epsilon)
from http://stackoverflow.com/questions/4915462/how-should-i-do-floating-point-comparison
Parameters:
a
b
epsilon
Returns:
{Boolean}

<static> V3.transform(a, b)
Function: V3.transform Parameters: a - the first vector operand b - the transformation matrix Returns: transformed vector
Parameters:
a
b

Documentation generated by JsDoc Toolkit 2.4.0 on Sun Jun 09 2013 12:38:12 GMT+0200 (CEST)