Versions Compared

Key

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

...

Returns a variable of type vector which points in the same direction as vec, but is of length len.

Scroll pagebreak

Examples

Code Block
languagetext
// Declare a vector, then changes its length

...


// The command will return a vector value of: <>

...



  vector $v1 = <<1, 1, 0>>, $v1 = `setLength $v1 1.0`;

...


print( $v1 );

Additional information

Related commands

...