Compare commits

...

2 Commits

Author SHA1 Message Date
bspeice df747855b6 Merge pull request 'Sierpinski Gasket' (#2) from sierpinski_gasket into main
CI / cargo fmt (push) Successful in 23s
CI / cargo test (push) Successful in 14m43s
CI / cargo test (GPU) (push) Successful in 17m35s
Reviewed-on: #2
2026-06-27 14:14:40 -04:00
bspeice 55cece063f Fix documentation whitespace
CI / cargo fmt (push) Successful in 21s
CI / cargo test (push) Successful in 14m18s
CI / cargo test (GPU) (push) Successful in 17m14s
2026-06-27 11:07:23 -04:00
+2 -2
View File
@@ -1,12 +1,12 @@
//! # Camera //! # Camera
//! //!
//! Map points from the IFS coordinate system to pixel coordinates. This is a lossy transformation. //! Map points from the IFS coordinate system to pixel coordinates. This is a lossy transformation.
use bytemuck::{Pod, Zeroable}; use bytemuck::{Pod, Zeroable};
use glam::{Affine2, IVec2, UVec2, Vec2, vec2}; use glam::{Affine2, IVec2, UVec2, Vec2, vec2};
use libm::powf; use libm::powf;
/// Settings used to map IFS coordinates to pixel coordinates. /// Settings used to map IFS coordinates to pixel coordinates.
/// ///
/// The camera is itself an affine transformation, capable of zoom, rotation, and translation /// The camera is itself an affine transformation, capable of zoom, rotation, and translation
/// of the IFS coordinates before rendering to the final image. /// of the IFS coordinates before rendering to the final image.
#[derive(Copy, Clone, Pod, Zeroable)] #[derive(Copy, Clone, Pod, Zeroable)]