Skip to content

Commit 203d0b4

Browse files
authored
Move bounding_2d example to math folder (#17523)
# Objective The bounding_2d example was originally placed in 2d_rendering because there was no folder for bounding or math, but now that this folder exist it makes no sense for it to be here. ## Solution Move the example ## Testing I ran the example
1 parent 644efd6 commit 203d0b4

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -778,13 +778,13 @@ wasm = true
778778

779779
[[example]]
780780
name = "bounding_2d"
781-
path = "examples/2d/bounding_2d.rs"
781+
path = "examples/math/bounding_2d.rs"
782782
doc-scrape-examples = true
783783

784784
[package.metadata.example.bounding_2d]
785-
name = "2D Bounding Volume Intersections"
785+
name = "Bounding Volume Intersections (2D)"
786786
description = "Showcases bounding volumes and intersection tests"
787-
category = "2D Rendering"
787+
category = "Math"
788788
wasm = true
789789

790790
[[example]]

examples/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ Example | Description
103103
Example | Description
104104
--- | ---
105105
[2D Bloom](../examples/2d/bloom_2d.rs) | Illustrates bloom post-processing in 2d
106-
[2D Bounding Volume Intersections](../examples/2d/bounding_2d.rs) | Showcases bounding volumes and intersection tests
107106
[2D Rotation](../examples/2d/rotation.rs) | Demonstrates rotating entities in 2D with quaternions
108107
[2D Shapes](../examples/2d/2d_shapes.rs) | Renders simple 2D primitive shapes like circles and polygons
109108
[2D Viewport To World](../examples/2d/2d_viewport_to_world.rs) | Demonstrates how to use the `Camera::viewport_to_world_2d` method
@@ -372,6 +371,7 @@ Example | Description
372371

373372
Example | Description
374373
--- | ---
374+
[Bounding Volume Intersections (2D)](../examples/math/bounding_2d.rs) | Showcases bounding volumes and intersection tests
375375
[Cubic Splines](../examples/math/cubic_splines.rs) | Exhibits different modes of constructing cubic curves using splines
376376
[Custom Primitives](../examples/math/custom_primitives.rs) | Demonstrates how to add custom primitives and useful traits for them.
377377
[Random Sampling](../examples/math/random_sampling.rs) | Demonstrates how to sample random points from mathematical primitives
File renamed without changes.

0 commit comments

Comments
 (0)