pub struct AtmospherePaint { /* private fields */ }Expand description
Immutable, admitted atmospheric paint with explicit time and canvas coordinates.
Implementations§
Source§impl AtmospherePaint
impl AtmospherePaint
Sourcepub fn new(
parameters: AtmosphereParameters,
canvas: PixelSize,
time: Time,
) -> Result<Self, ValidationError>
pub fn new( parameters: AtmosphereParameters, canvas: PixelSize, time: Time, ) -> Result<Self, ValidationError>
Validates a recipe and its full canvas at explicit time without allocating pixels.
Sourcepub fn parameters(&self) -> &AtmosphereParameters
pub fn parameters(&self) -> &AtmosphereParameters
Validated immutable recipe.
Sourcepub fn validate(&self) -> Result<(), ValidationError>
pub fn validate(&self) -> Result<(), ValidationError>
Validates parameters and every octave’s full-canvas lattice support, even when invisible.
Sourcepub fn sample(&self, point: Point) -> Result<[f32; 4], ValidationError>
pub fn sample(&self, point: Point) -> Result<[f32; 4], ValidationError>
Evaluates normalized object coordinates into linear-premultiplied working pixels.
Sourcepub fn work_per_pixel(&self) -> u64
pub fn work_per_pixel(&self) -> u64
Conservative scalar work charge per evaluated pixel.
Trait Implementations§
Source§impl Clone for AtmospherePaint
impl Clone for AtmospherePaint
impl Copy for AtmospherePaint
Source§impl Debug for AtmospherePaint
impl Debug for AtmospherePaint
Source§impl From<AtmospherePaint> for Paint
impl From<AtmospherePaint> for Paint
Source§fn from(value: AtmospherePaint) -> Self
fn from(value: AtmospherePaint) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AtmospherePaint
impl PartialEq for AtmospherePaint
impl StructuralPartialEq for AtmospherePaint
Auto Trait Implementations§
impl Forget for AtmospherePaint
impl Freeze for AtmospherePaint
impl Move for AtmospherePaint
impl RefUnwindSafe for AtmospherePaint
impl Send for AtmospherePaint
impl Sync for AtmospherePaint
impl Unpin for AtmospherePaint
impl UnsafeUnpin for AtmospherePaint
impl UnwindSafe for AtmospherePaint
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more