...
Returns the absolute value of the angle between vector1 and vector2
Examples
Code Block | ||
---|---|---|
| ||
vector $v1 = <<1, 0, 0>>; |
...
vector $v2 = <<0, 1, 0>>; |
...
// show that getAngleTo returns the absolute value of the angle |
...
// between two orthogonal vectors (90 degrees) regardless of |
...
// ordering between vector1 and vector2 |
...
print( getAngleTo($v1, $v2)) ; |
...
print( getAngleTo($v2, $v1)) ; |
Scroll pagebreak |
---|
Additional information
...