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.