You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Disassemble the boundary as [`CollisionRect`]s, [`CollisionRotatedRect`]s and [`CollisionCircle`]s as query boundary.
60
58
/// All `S: Disassemble` also impl `CollisionQuery`, which can be used as a boundary in [`QuadTree::query`](crate::QuadTree::query).
59
+
///
60
+
/// Relation::Contain if any of the sub-boundaries completely contains the object.
61
+
///
62
+
/// Relation::Contained if all of the sub-boundaries are completely contained by the object.
63
+
///
64
+
/// Relation::Overlap if any of the sub-boundaries overlaps the object
65
+
/// or not all of the sub-boundaries are contained by the object.
66
+
///
67
+
/// Relation::Disjoint otherwise.
61
68
pubtraitDisassemble{
62
69
/// Disassemble the shape as [`CollisionRect`], [`CollisionRotatedRect`] and [`CollisionCircle`] as query boundaries.
63
70
fndisassemble(
@@ -71,18 +78,9 @@ pub trait Disassemble {
71
78
72
79
/// Used for [`QuadTree::query`](crate::QuadTree::query) as a boundary to detect the relation between the boundary and objects from the tree.
73
80
///
74
-
/// However, implementing [`Disassemble`] trait for userboundary used in [`QuadTree::query`](crate::QuadTree::query) is recommended, since it's easier.
81
+
/// However, implementing user-defined query boundary with [`Disassemble`] trait is recommended, since it's easier.
75
82
///
76
-
/// For `S: Disassemble`, the default `CollisionQuery` impletation:
77
-
///
78
-
/// Relation::Contain if any of the sub-boundaries completely contains the object.
79
-
///
80
-
/// Relation::Contained if all of the sub-boundaries are completely contained by the object.
81
-
///
82
-
/// Relation::Overlap if any of the sub-boundaries overlaps the object
83
-
/// or not all of the sub-boundaries are contained by the object.
84
-
///
85
-
/// Relation::Disjoint otherwise.
83
+
/// For `S: Disassemble`, the default `CollisionQuery` impletation see [`here`](crate::Disassemble).
86
84
pubtraitCollisionQuery{
87
85
/// Detect the relation between the boundary and objects from the tree.
0 commit comments