Module Ephemeral.Common

Common components

type path = string

File paths

type vec3 = {
  1. x : float;
  2. y : float;
  3. z : float;
}

XYZ vector

val string_of_vec3 : vec3 -> string

String representation of a vector

val magnitude : vec3 -> float

Compute the magnitude of a vector

val clamp : 'a -> 'a -> 'a -> 'a

Clamp a value between two boundaries, inclusive

val contains : string -> string -> bool

Check if s1 contains s2