vec/dict/vec3i_dict

Types

A dictionary with 3D integer vector as keys.

pub type Vec3iDict(value) =
  dict.Dict(vec3.Vec3(Int), value)

Values

pub fn anchor_position(
  dict: dict.Dict(vec3.Vec3(Int), value),
  at position: vec3.Vec3(Int),
  then fun: fn(dict.Dict(vec3.Vec3(Int), value)) -> dict.Dict(
    vec3.Vec3(Int),
    value,
  ),
) -> dict.Dict(vec3.Vec3(Int), value)

Return the equivalent of dict |> offset(vec3i.negate(position)) |> fun() |> offset(position).

pub fn mirror(
  in dict: dict.Dict(vec3.Vec3(Int), value),
  through normal: vec3.Vec3(Int),
) -> dict.Dict(vec3.Vec3(Int), value)

Returns the mirror of a vec-dict through a plane defined by the given normal vector.

pub fn offset(
  in dict: dict.Dict(vec3.Vec3(Int), value),
  by vector: vec3.Vec3(Int),
) -> dict.Dict(vec3.Vec3(Int), value)

Returns a new vec-dict containing the key offset by vector.

Search Document