Skip to content

Commit

Permalink
doc: Fix layout of ASCII drawing in Aabb docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys committed Aug 5, 2023
1 parent 16a85ef commit 4809ea5
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/bounding_volume/aabb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -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),
Expand Down

0 comments on commit 4809ea5

Please sign in to comment.