vec/dict/vec4f_dict

Types

A dictionary with 4D float vector as keys.

pub type Vec4fDict(value) =
  dict.Dict(vec4.Vec4(Float), value)

Values

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

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

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

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

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

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

Search Document