Go to the source code of this file.
|
| function | vec2axisdir (in vec) |
| | convert a vector to an axis and a direction
|
| |
◆ vec2axisdir()
| function vec2axisdir |
( |
in | vec | ) |
|
convert a vector to an axis and a direction
- Parameters
-
- Return values
-
| axis | axis (1, 2, 3) |
| dir | direction (1, -1) |
[axis, dir] =
vec2axisdir([1, 0, 0]) % returns
"x",
"positive"
[axis, dir] =
vec2axisdir([-1, 0, 0]) % returns
"x",
"negative"
function vec2axisdir(in vec)
convert a vector to an axis and a direction
%>
- Copyright
- see the file LICENSE in the root directory of the repository