diff options
author | Julian T <julian@jtle.dk> | 2021-08-01 22:55:07 +0200 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2021-08-01 22:55:07 +0200 |
commit | 86ad7845219e8db06fe47b62794180e1b40f90a5 (patch) | |
tree | 2fe1de5c4a854522536a397b7913d7c299b35c67 /src/core/mod.rs | |
parent | ae460c3f34838e3baf0ffafe4ccbcf1fbfe03095 (diff) |
Implement dielectric material from RTIAW
Diffstat (limited to 'src/core/mod.rs')
-rw-r--r-- | src/core/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/mod.rs b/src/core/mod.rs index 07793ec..95d450c 100644 --- a/src/core/mod.rs +++ b/src/core/mod.rs @@ -18,14 +18,14 @@ pub use ray::Ray; use crate::Number; -fn min<T: Number> (a: T, b: T) -> T { +pub fn min<T: Number> (a: T, b: T) -> T { if b < a { return b; } a } -fn max<T: Number> (a: T, b: T) -> T { +pub fn max<T: Number> (a: T, b: T) -> T { if b > a { return b; } |