Expand description
Provides structs for representing extents (sizes) and origins (offsets) in 1D, 2D, and 3D.
These types are commonly used to describe the dimensions of textures, windows, or
regions within them. They use integer (u32
) components, making them suitable
for representing pixel-based coordinates and sizes.
Structsยง
- Extent1D
- A one-dimensional extent, typically representing a width.
- Extent2D
- A two-dimensional extent, typically representing width and height.
- Extent3D
- A three-dimensional extent, representing width, height, and depth.
- Origin2D
- A two-dimensional origin, typically representing an (x, y) offset.
- Origin3D
- A three-dimensional origin, representing an (x, y, z) offset.