Import std.math.vector
Vec4
struct
Public Struct Vec4 Implements Numeric, Hashable, Printable, Defaultable
A point or direction in 4D, or a 3D one with a w, as a Mat4 transforms it.
-
Its x component.
-
Its y component.
-
Its z component.
-
Its w component.
-
The zero vector, (0, 0, 0, 0).
-
The vector (1, 1, 1, 1), which multiplying leaves alone.
-
The zero vector, (0, 0, 0, 0).
-
Its x and y, as a Vec2.
-
Its x, y, and z, as a Vec3.
-
Its components, as "(1, 2, 3, 4)".
-
The component at the index: x at 0, y at 1, z at 2, and w at 3. Any other index panics.
-
aplusb, component by component. -
aminusb, component by component. -
atimesb, component by component. -
adivided byb, component by component. -
atimesscale. -
scaletimesa. -
adivided byscale. -
anegated.
Report an issue with this page or with FutureBlitz on GitHub.