View Source Zenic.Camera (Zenic v0.1.0)

Summary

Types

Functions

Link to this function

orthographic(left \\ 0, right \\ 100, bottom \\ 0, top \\ 100, near \\ 0.1, far \\ 1000.0)

View Source
@spec orthographic(
  left :: number(),
  right :: number(),
  bottom :: number(),
  top :: number(),
  near :: number(),
  far :: number()
) :: t()
Link to this function

perspective(width \\ 1, height \\ 1, near \\ 0.1, far \\ 1000.0, fov \\ 90.0)

View Source
@spec project(
  point :: Zenic.Math.Vector3.t() | [Zenic.Math.Vector3.t()],
  camera :: t()
) ::
  Zenic.Math.Vector3.t() | [Zenic.Math.Vector3.t()]
Link to this function

resize(camera, width, height)

View Source
@spec resize(t(), width :: number(), height :: number()) :: t()