vec/dict/vec4i_dict

Values

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

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

pub fn from_list(
  list: List(dict.Dict(vec3.Vec3(Int), a)),
) -> dict.Dict(vec4.Vec4(Int), a)

Converts a list of 3D vec-dict to a 4D vec-dict start from w: 0 where the lists index is w.

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

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

pub fn new_rectangle(
  from start: vec4.Vec4(Int),
  to stop: vec4.Vec4(Int),
  with fun: fn(vec4.Vec4(Int)) -> value,
) -> dict.Dict(vec4.Vec4(Int), value)

Deprecated: Vendor this function into your codebase

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

Deprecated: Renamed to `translate`

pub fn to_list(
  dict: dict.Dict(vec4.Vec4(Int), value),
) -> List(List(List(List(Result(value, Nil)))))

Deprecated: Vendor this function into your codebase

pub fn translate(
  in dict: dict.Dict(vec4.Vec4(Int), value),
  by offset: vec4.Vec4(Int),
) -> dict.Dict(vec4.Vec4(Int), value)

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

Search Document