This commit is contained in:
Patrick Stevens
2021-04-07 18:53:51 +01:00
committed by GitHub
parent eefaa92d0e
commit a001bab92b
24 changed files with 458 additions and 753 deletions

21
RayTracing/Ray.fsi Normal file
View File

@@ -0,0 +1,21 @@
namespace RayTracing
type Ray
[<RequireQualifiedAccess>]
module Ray =
val make' : Point -> Vector -> Ray option
val make : Point -> UnitVector -> Ray
val walkAlong : Ray -> float -> Point
val between : Point -> Point -> Ray option
val parallelTo : Point -> Ray -> Ray
val liesOn : Point -> Ray -> bool
val vector : Ray -> UnitVector
val origin : Ray -> Point
val flip : Ray -> Ray