Struct FloatRect
pub struct FloatRect { pub min: Vec2<f32>, pub max: Vec2<f32> }
A rectangular section anywhere in 2D float space.
Fields
min: Vec2<f32>The top left corner location of the rectangle (inclusive)
max: Vec2<f32>The bottom right corner location of the rectangle (inclusive)
Implementations
impl FloatRect
const fn byte_size() -> usizeNumber of bytes this would consume in an exr file.
fn write<W: Write>(&self, write: &mut W) -> UnitResultWithout validation, write this instance to the byte stream.
fn read<R: Read>(read: &mut R) -> Result<Self>Read the value without validating.
Trait Implementations
impl Clone for FloatRect
fn clone(&self) -> Self
impl Copy for FloatRect
impl Debug for FloatRect
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl PartialEq for FloatRect
fn eq(&self, other: &Self) -> bool