Commit 98b6e86
committed
Implement
This may be desirable as the generic abstraction; also note there
already is an `fn area(Aabb2D<T: Scalar) -> T::Acc` (if we land this,
`area` could become a method on `Aabb2D<T: Scalar>`))
The `const`-ness could be gained back with
rust-lang/rfcs#3762 at some (hopefully
not-too-distant) future Rust version.Aabb2D<T: Scalar>::from_xywh
1 parent 4db3eb6 commit 98b6e86
1 file changed
+4
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
| 66 | + | |
| 67 | + | |
92 | 68 | | |
93 | 69 | | |
94 | 70 | | |
| |||
0 commit comments