Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Returns the absolute value of the angle between vector1 and vector2

Examples

Code Block
languagetext
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

...