View Source Zenic.Camera (Zenic v0.1.0)
Summary
Types
@type t() :: %Zenic.Camera{ matrix: Scenic.Math.matrix(), position: Zenic.Math.Vector3.t(), projection: Zenic.Camera.Perspective.t() | Zenic.Camera.Orthographic.t() }
Functions
Link to this function
orthographic(left \\ 0, right \\ 100, bottom \\ 0, top \\ 100, near \\ 0.1, far \\ 1000.0)
View Source
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()]