mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-31 21:11:55 +02:00
Various bugfixes found by docs regen.
This commit is contained in:
@@ -119,7 +119,7 @@ function vceil(v) = [for (x=v) ceil(x)];
|
||||
// unit([0,0,10]); // Returns: [0,0,1]
|
||||
// unit([0,-10,0]); // Returns: [0,-1,0]
|
||||
// unit([0,0,0]); // Returns: [0,0,0]
|
||||
function unit(v) = norm(v)<=EPSILON? v : v/norm(v);
|
||||
function unit(v) = assert(is_vector(v),str(v)) norm(v)<=EPSILON? v : v/norm(v);
|
||||
|
||||
|
||||
// Function: vector_angle()
|
||||
|
Reference in New Issue
Block a user