Skip to content

Builtin vector properties #4961

@data-man

Description

@data-man
x, r == v[0]
y, g == v[1]
z, b == v[2]
w, a == v[3]

Or even user-defined:

const Color32 = @Vector(3, u32, "rgb")
const Vec2 = @Vector(2, f32, "xy")
const Vec3 = @Vector(3, f32, "xyz")
const Vec4 = @Vector(4, f32, "xyzw")
const Quaternion = @Vector(4, f32, "xyzw")

Metadata

Metadata

Assignees

No one assigned

    Labels

    proposalThis issue suggests modifications. If it also has the "accepted" label then it is planned.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions