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.