Compare commits
2 Commits
344ecc3450
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| df747855b6 | |||
| 55cece063f |
@@ -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)]
|
||||||
|
|||||||
Reference in New Issue
Block a user