From 974b08989aa446ac3a2eedae0239b4203734477e Mon Sep 17 00:00:00 2001 From: Corwin Date: Sat, 17 Aug 2024 15:48:26 +0100 Subject: [PATCH] add docs --- agb/src/display/affine.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/agb/src/display/affine.rs b/agb/src/display/affine.rs index bdccd6e4..86c95e99 100644 --- a/agb/src/display/affine.rs +++ b/agb/src/display/affine.rs @@ -90,6 +90,13 @@ type AffineMatrixElement = Num; #[derive(Debug, PartialEq, Eq, Clone, Copy)] /// An affine matrix stored in a way that is efficient for the GBA to perform /// operations on. This implements multiplication. +/// +/// ``` +/// a b x +/// c d y +/// 0 0 0 +/// ``` +#[allow(missing_docs)] pub struct AffineMatrix { pub a: AffineMatrixElement, pub b: AffineMatrixElement, @@ -318,6 +325,12 @@ impl From for AffineMatrix { #[derive(Debug, PartialEq, Eq, Clone, Copy)] #[repr(C, packed(4))] /// An affine matrix that can be used in affine objects +/// +/// ``` +/// a b +/// c d +/// ``` +#[allow(missing_docs)] pub struct AffineMatrixObject { pub a: Num, pub b: Num,