vec/dict/vec3f_dict

Values

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

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

pub fn anchor_rotation(
  dict: dict.Dict(vec3.Vec3(Float), value),
  around axis: vec3.Vec3(Float),
  at angle: Float,
  then fun: fn(dict.Dict(vec3.Vec3(Float), value)) -> dict.Dict(
    vec3.Vec3(Float),
    value,
  ),
) -> dict.Dict(vec3.Vec3(Float), value)

Return the equivalent of dict |> rotate(-angle) |> fun() |> rotate(angle).

pub fn decoder(
  value: decode.Decoder(value),
) -> decode.Decoder(dict.Dict(vec3.Vec3(Float), value))

A decoder that decodes 3D float vec-dict.

pub fn mirror(
  in dict: dict.Dict(vec3.Vec3(Float), value),
  through normal: vec3.Vec3(Float),
) -> dict.Dict(vec3.Vec3(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(vec3.Vec3(Float), value),
  by vector: vec3.Vec3(Float),
) -> dict.Dict(vec3.Vec3(Float), value)

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

pub fn rotate(
  in dict: dict.Dict(vec3.Vec3(Float), value),
  around axis: vec3.Vec3(Float),
  by angle: Float,
) -> dict.Dict(vec3.Vec3(Float), value)

Rotate a vec-dict around a given axis by an angle (in radians).

Search Document