Module Portal3d

type t = {
  1. centre : vec;
  2. normal : vec;
  3. up : vec;
  4. width : Playground3d.number;
  5. height : Playground3d.number;
}
val right : t -> vec
val point : from:t -> into:t -> vec -> vec
val direction : from:t -> into:t -> vec -> vec
val orientation : from:t -> into:t -> Quat.t -> Quat.t
val carry : from:t -> into:t -> Physics3d.body -> Physics3d.body
val crossed : t -> before:vec -> after:vec -> bool
val clip : eye:vec -> t -> vec list -> vec list
val of_frame : vec -> vec -> vec -> Quat.t