Import std.math.int_vector
Vec3i
struct
Public Struct Vec3i Implements Numeric, Hashable, Printable, Defaultable
A cell or step on a 3D grid.
std/math/int_vector.fb, line 101
-
Its x component.
-
Its y component.
-
Its z component.
-
The zero vector, (0, 0, 0).
-
The vector (1, 1, 1), which multiplying leaves alone.
-
The zero vector, (0, 0, 0).
-
The components as Floats, rounded to the nearest one a Float holds.
-
Its components, as "(1, 2, 3)".
-
The component at the index: x at 0, y at 1, and z at 2. Any other index panics.
-
aplusb, component by component. Panics in a debug build when a component overflows, and wraps in a release one. -
aminusb, component by component. Panics in a debug build when a component overflows, and wraps in a release one. -
atimesb, component by component. Panics in a debug build when a component overflows, and wraps in a release one. -
adivided byb, component by component. Each rounded toward 0. A component of 0 inbpanics. -
atimesscale. -
scaletimesa. -
adivided byscale. -
anegated.
Report an issue with this page or with FutureBlitz on GitHub.