@@ -31,9 +31,9 @@ pub struct Aabb {
3131}
3232
3333impl Aabb {
34- /// The vertex indices of each edge of this Aabb.
34+ /// The vertex indices of each edge of this ` Aabb` .
3535 ///
36- /// This gives, for each edge of this Aabb, the indices of its
36+ /// This gives, for each edge of this ` Aabb` , the indices of its
3737 /// vertices when taken from the `self.vertices()` array.
3838 /// Here is how the faces are numbered, assuming
3939 /// a right-handed coordinate system:
@@ -61,9 +61,9 @@ impl Aabb {
6161 ( 3 , 7 ) ,
6262 ] ;
6363
64- /// The vertex indices of each face of this Aabb.
64+ /// The vertex indices of each face of this ` Aabb` .
6565 ///
66- /// This gives, for each face of this Aabb, the indices of its
66+ /// This gives, for each face of this ` Aabb` , the indices of its
6767 /// vertices when taken from the `self.vertices()` array.
6868 /// Here is how the faces are numbered, assuming
6969 /// a right-handed coordinate system:
@@ -96,9 +96,9 @@ impl Aabb {
9696 Aabb { mins, maxs }
9797 }
9898
99- /// Creates an invalid Aabb with `mins` components set to `Real::max_values` and `maxs`components set to `-Real::max_values`.
99+ /// Creates an invalid ` Aabb` with `mins` components set to `Real::max_values` and `maxs`components set to `-Real::max_values`.
100100 ///
101- /// This is often used as the initial values of some Aabb merging algorithms.
101+ /// This is often used as the initial values of some ` Aabb` merging algorithms.
102102 #[ inline]
103103 pub fn new_invalid ( ) -> Self {
104104 Self :: new (
@@ -107,34 +107,34 @@ impl Aabb {
107107 )
108108 }
109109
110- /// Creates a new Aabb from its center and its half-extents.
110+ /// Creates a new ` Aabb` from its center and its half-extents.
111111 #[ inline]
112112 pub fn from_half_extents ( center : Point < Real > , half_extents : Vector < Real > ) -> Self {
113113 Self :: new ( center - half_extents, center + half_extents)
114114 }
115115
116- /// Creates a new Aabb from a set of points.
116+ /// Creates a new ` Aabb` from a set of points.
117117 pub fn from_points < ' a , I > ( pts : I ) -> Self
118118 where
119119 I : IntoIterator < Item = & ' a Point < Real > > ,
120120 {
121121 super :: aabb_utils:: local_point_cloud_aabb ( pts)
122122 }
123123
124- /// The center of this Aabb.
124+ /// The center of this ` Aabb` .
125125 #[ inline]
126126 pub fn center ( & self ) -> Point < Real > {
127127 na:: center ( & self . mins , & self . maxs )
128128 }
129129
130- /// The half extents of this Aabb.
130+ /// The half extents of this ` Aabb` .
131131 #[ inline]
132132 pub fn half_extents ( & self ) -> Vector < Real > {
133133 let half: Real = na:: convert :: < f64 , Real > ( 0.5 ) ;
134134 ( self . maxs - self . mins ) * half
135135 }
136136
137- /// The volume of this Aabb.
137+ /// The volume of this ` Aabb` .
138138 #[ inline]
139139 pub fn volume ( & self ) -> Real {
140140 let extents = self . extents ( ) ;
@@ -144,19 +144,19 @@ impl Aabb {
144144 return extents. x * extents. y * extents. z ;
145145 }
146146
147- /// The extents of this Aabb.
147+ /// The extents of this ` Aabb` .
148148 #[ inline]
149149 pub fn extents ( & self ) -> Vector < Real > {
150150 self . maxs - self . mins
151151 }
152152
153- /// Enlarges this Aabb so it also contains the point `pt`.
153+ /// Enlarges this ` Aabb` so it also contains the point `pt`.
154154 pub fn take_point ( & mut self , pt : Point < Real > ) {
155155 self . mins = self . mins . coords . inf ( & pt. coords ) . into ( ) ;
156156 self . maxs = self . maxs . coords . sup ( & pt. coords ) . into ( ) ;
157157 }
158158
159- /// Computes the Aabb bounding `self` transformed by `m`.
159+ /// Computes the ` Aabb` bounding `self` transformed by `m`.
160160 #[ inline]
161161 pub fn transform_by ( & self , m : & Isometry < Real > ) -> Self {
162162 let ls_center = self . center ( ) ;
@@ -176,7 +176,7 @@ impl Aabb {
176176 }
177177 }
178178
179- /// The smallest bounding sphere containing this Aabb.
179+ /// The smallest bounding sphere containing this ` Aabb` .
180180 #[ inline]
181181 pub fn bounding_sphere ( & self ) -> BoundingSphere {
182182 let center = self . center ( ) ;
@@ -195,7 +195,7 @@ impl Aabb {
195195 true
196196 }
197197
198- /// Computes the intersection of this Aabb and another one.
198+ /// Computes the intersection of this ` Aabb` and another one.
199199 pub fn intersection ( & self , other : & Aabb ) -> Option < Aabb > {
200200 let result = Aabb {
201201 mins : Point :: from ( self . mins . coords . sup ( & other. mins . coords ) ) ,
@@ -211,17 +211,17 @@ impl Aabb {
211211 Some ( result)
212212 }
213213
214- /// Returns the difference between this Aabb and `rhs`.
214+ /// Returns the difference between this ` Aabb` and `rhs`.
215215 ///
216- /// Removing another Aabb from `self` will result in zero, one, or up to 4 (in 2D) or 8 (in 3D)
216+ /// Removing another ` Aabb` from `self` will result in zero, one, or up to 4 (in 2D) or 8 (in 3D)
217217 /// new smaller Aabbs.
218218 pub fn difference ( & self , rhs : & Aabb ) -> ArrayVec < Self , TWO_DIM > {
219219 self . difference_with_cut_sequence ( rhs) . 0
220220 }
221221
222- /// Returns the difference between this Aabb and `rhs`.
222+ /// Returns the difference between this ` Aabb` and `rhs`.
223223 ///
224- /// Removing another Aabb from `self` will result in zero, one, or up to 4 (in 2D) or 8 (in 3D)
224+ /// Removing another ` Aabb` from `self` will result in zero, one, or up to 4 (in 2D) or 8 (in 3D)
225225 /// new smaller Aabbs.
226226 ///
227227 /// # Return
@@ -276,7 +276,7 @@ impl Aabb {
276276 ( result, cut_sequence)
277277 }
278278
279- /// Computes the vertices of this Aabb.
279+ /// Computes the vertices of this ` Aabb` .
280280 #[ inline]
281281 #[ cfg( feature = "dim2" ) ]
282282 pub fn vertices ( & self ) -> [ Point < Real > ; 4 ] {
@@ -288,7 +288,7 @@ impl Aabb {
288288 ]
289289 }
290290
291- /// Computes the vertices of this Aabb.
291+ /// Computes the vertices of this ` Aabb` .
292292 #[ inline]
293293 #[ cfg( feature = "dim3" ) ]
294294 pub fn vertices ( & self ) -> [ Point < Real > ; 8 ] {
@@ -304,7 +304,7 @@ impl Aabb {
304304 ]
305305 }
306306
307- /// Splits this Aabb at its center, into four parts (as in a quad-tree).
307+ /// Splits this ` Aabb` at its center, into four parts (as in a quad-tree).
308308 #[ inline]
309309 #[ cfg( feature = "dim2" ) ]
310310 pub fn split_at_center ( & self ) -> [ Aabb ; 4 ] {
@@ -324,7 +324,7 @@ impl Aabb {
324324 ]
325325 }
326326
327- /// Splits this Aabb at its center, into eight parts (as in an octree).
327+ /// Splits this ` Aabb` at its center, into eight parts (as in an octree).
328328 #[ inline]
329329 #[ cfg( feature = "dim3" ) ]
330330 pub fn split_at_center ( & self ) -> [ Aabb ; 8 ] {
@@ -366,7 +366,7 @@ impl Aabb {
366366 ]
367367 }
368368
369- /// Projects every point of Aabb on an arbitrary axis.
369+ /// Projects every point of ` Aabb` on an arbitrary axis.
370370 pub fn project_on_axis ( & self , axis : & UnitVector < Real > ) -> ( Real , Real ) {
371371 let cuboid = Cuboid :: new ( self . half_extents ( ) ) ;
372372 let shift = cuboid
0 commit comments