[math] simplify algorithm finding greatest vector
This commit is contained in:
parent
6a09787496
commit
2b8bfcaa3e
1 changed files with 1 additions and 2 deletions
|
|
@ -47,10 +47,9 @@ pub fn Ray(comptime Vec3P: type) type {
|
|||
}
|
||||
} else if (v[1] > v[2]) {
|
||||
return 1;
|
||||
} else if (v[2] > v[0]) {
|
||||
} else {
|
||||
return 2;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Algorithm based on:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue