View Source Zenic.Transform (Zenic v0.1.0)

Summary

Types

@type option() ::
  {:translate, Zenic.Math.Vector3.t()}
  | {:rotate, Zenic.Math.Matrix.rotation()}
  | {:scale, Zenic.Math.Vector3.t()}
@type options() :: [option()]
@type t() :: %Zenic.Transform{
  rotate: Zenic.Math.Matrix.rotation(),
  scale: Zenic.Math.Vector3.t(),
  translate: Zenic.Math.Vector3.t()
}

Functions

@spec new(options()) :: t()
Link to this function

project(points, transforms)

View Source
@spec project(points :: [Zenic.Math.Vector3.t()], transforms :: [t()]) :: [
  Zenic.Math.Vector3.t()
]