mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-04 06:01:35 +11:00
add docs
This commit is contained in:
parent
e1cc3d7773
commit
974b08989a
|
@ -90,6 +90,13 @@ type AffineMatrixElement = Num<i32, 8>;
|
||||||
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
|
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
|
||||||
/// An affine matrix stored in a way that is efficient for the GBA to perform
|
/// An affine matrix stored in a way that is efficient for the GBA to perform
|
||||||
/// operations on. This implements multiplication.
|
/// operations on. This implements multiplication.
|
||||||
|
///
|
||||||
|
/// ```
|
||||||
|
/// a b x
|
||||||
|
/// c d y
|
||||||
|
/// 0 0 0
|
||||||
|
/// ```
|
||||||
|
#[allow(missing_docs)]
|
||||||
pub struct AffineMatrix {
|
pub struct AffineMatrix {
|
||||||
pub a: AffineMatrixElement,
|
pub a: AffineMatrixElement,
|
||||||
pub b: AffineMatrixElement,
|
pub b: AffineMatrixElement,
|
||||||
|
@ -318,6 +325,12 @@ impl From<AffineMatrixBackground> for AffineMatrix {
|
||||||
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
|
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
|
||||||
#[repr(C, packed(4))]
|
#[repr(C, packed(4))]
|
||||||
/// An affine matrix that can be used in affine objects
|
/// An affine matrix that can be used in affine objects
|
||||||
|
///
|
||||||
|
/// ```
|
||||||
|
/// a b
|
||||||
|
/// c d
|
||||||
|
/// ```
|
||||||
|
#[allow(missing_docs)]
|
||||||
pub struct AffineMatrixObject {
|
pub struct AffineMatrixObject {
|
||||||
pub a: Num<i16, 8>,
|
pub a: Num<i16, 8>,
|
||||||
pub b: Num<i16, 8>,
|
pub b: Num<i16, 8>,
|
||||||
|
|
Loading…
Reference in a new issue