View Source Rayex.Models (Rayex v0.0.3)

Models related functions

Summary

Functions

Link to this function

draw_cube(position, width, height, length, color)

View Source
@spec draw_cube(
  Rayex.Structs.Vector3.t(),
  float(),
  float(),
  float(),
  Rayex.Structs.Color.t()
) :: :ok

Draw cube

Link to this function

draw_cube_wires(position, width, height, length, color)

View Source
@spec draw_cube_wires(
  Rayex.Structs.Vector3.t(),
  float(),
  float(),
  float(),
  Rayex.Structs.Color.t()
) ::
  :ok

Draw cube wires

Link to this function

draw_grid(slices, spacing)

View Source
@spec draw_grid(non_neg_integer(), float()) :: :ok

Draw a grid (centered at (0, 0, 0))

@spec draw_ray(Rayex.Structs.Ray.t(), Rayex.Structs.Color.t()) :: :ok

Draw a ray line