forked from StudioInfinity/dyna3
Correct sign of normal in plane utility
Clarify the relevant notes too.
This commit is contained in:
parent
d0340c0b65
commit
74c7f64b0c
3 changed files with 5 additions and 5 deletions
|
@ -41,7 +41,7 @@ rand_on_shell(shells::Array{<:Number}) = rand_on_shell(Random.default_rng(), she
|
|||
|
||||
point(pos) = [pos; 0.5; 0.5 * dot(pos, pos)]
|
||||
|
||||
plane(normal, offset) = [normal; 0; offset]
|
||||
plane(normal, offset) = [-normal; 0; -offset]
|
||||
|
||||
function sphere(center, radius)
|
||||
dist_sq = dot(center, center)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue