View Source Zenic.Camera.Orthographic (Zenic v0.1.0)

Summary

Types

@type t() :: %Zenic.Camera.Orthographic{
  bottom: number(),
  far: number(),
  left: number(),
  near: number(),
  right: number(),
  top: number()
}

Functions

Link to this function

new(left, right, bottom, top, near, far)

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

resize(orthographic, width, height)

View Source
@spec resize(t(), width :: number(), height :: number()) :: t()
@spec to_matrix(t()) :: Scenic.Math.matrix()