glum/object

Types

pub type Checksum
pub type Material {
  Basic(color: Color)
  Normal
}

Constructors

  • Basic(color: Color)
  • Normal
pub type Object {
  None
  Box(
    position: Vector(Three),
    size: Vector(Three),
    rotation: Vector(Three),
    material: Material,
  )
}

Constructors

  • None
  • Box(
      position: Vector(Three),
      size: Vector(Three),
      rotation: Vector(Three),
      material: Material,
    )

Values

pub fn box(material material: Material) -> Object
pub fn checksum(object object: Object) -> Checksum
pub fn none() -> Object
pub fn rotate(object object: Object, by by: Vector(a)) -> Object
pub fn translate(
  object object: Object,
  by by: Vector(a),
) -> Object
Search Document