... | ... | @@ -111,6 +111,7 @@ Let ```v``` and ```u``` be vectors and ```n``` a number. |
|
|
* ```v / u```: vector component-wise division
|
|
|
* ```v * n``` or ```n * v```: vector scalar multiplication.
|
|
|
* ```v / n```: vector scalar division.
|
|
|
* ```v1 == v2```: vector comparison.
|
|
|
* ```-v```: syntactic sugar for ```-1 * v```.
|
|
|
* ```dot(v, u)```: dot product.
|
|
|
* ```cross(v, u)```: cross product.
|
... | ... | @@ -137,6 +138,7 @@ Operations: Let ```M``` and ```Q``` be matrices, let ```v``` be a vector and let |
|
|
* ```M * Q```: matrix multiplication. Returns a matrix.
|
|
|
* ```M * v```: matrix-vector multiplication. Returns a vector.
|
|
|
* ```M * s```: shape transformation. Returns the shape transformed by ```M```.
|
|
|
* ```M1 == M2```: matrix comparison. Returns a boolean.
|
|
|
* ```inverse(M)```: matrix inversion. Returns the inverse of matrix ```M```.
|
|
|
|
|
|
### Constants, Trigonometric Functions and Angles <a name="constants"></a>
|
... | ... | @@ -146,6 +148,7 @@ The following are constants in IceSL: |
|
|
* ```X```: the vector ```v(1,0,0)```.
|
|
|
* ```Y```: the vector ```v(0,1,0)```.
|
|
|
* ```Z```: the vector ```v(0,0,1)```.
|
|
|
* ```Id```: the identity matrix.
|
|
|
* ```Path```: the path of the current script.
|
|
|
|
|
|
IceSl can calculate the next trigonometric functions:
|
... | ... | |