From 4809ea523dd77ed329bb60775ea6a11e0beb3934 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Fri, 16 Jun 2023 19:27:38 +0700 Subject: [PATCH] doc: Fix layout of ASCII drawing in Aabb docs. --- src/bounding_volume/aabb.rs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/bounding_volume/aabb.rs b/src/bounding_volume/aabb.rs index 870ed6e7..041704b1 100644 --- a/src/bounding_volume/aabb.rs +++ b/src/bounding_volume/aabb.rs @@ -38,11 +38,13 @@ impl Aabb { /// Here is how the faces are numbered, assuming /// a right-handed coordinate system: /// + /// ```text /// y 3 - 2 /// | 7 − 6 | - /// ___ x | | 1 (the zero is below 3 and on the left of 1, hidden by the 4-5-6-7 face.) - /// / 4 - 5 + /// ___ x | | 1 (the zero is below 3 and on the left of 1, + /// / 4 - 5 hidden by the 4-5-6-7 face.) /// z + /// ``` #[cfg(feature = "dim3")] pub const EDGES_VERTEX_IDS: [(usize, usize); 12] = [ (0, 1), @@ -66,11 +68,13 @@ impl Aabb { /// Here is how the faces are numbered, assuming /// a right-handed coordinate system: /// + /// ```text /// y 3 - 2 /// | 7 − 6 | - /// ___ x | | 1 (the zero is below 3 and on the left of 1, hidden by the 4-5-6-7 face.) - /// / 4 - 5 + /// ___ x | | 1 (the zero is below 3 and on the left of 1, + /// / 4 - 5 hidden by the 4-5-6-7 face.) /// z + /// ``` #[cfg(feature = "dim3")] pub const FACES_VERTEX_IDS: [(usize, usize, usize, usize); 6] = [ (1, 2, 6, 5),