vec/dict/vec4f_dict

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 decoder(
  value: decode.Decoder(value),
) -> decode.Decoder(dict.Dict(vec4.Vec4(Float), value))

A decoder that decodes 4D float vec-dict.

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