Commit 1e8b4c8
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 21d2dec commit 1e8b4c8
1 file changed
+4
-30
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
| 71 | + | |
| 72 | + | |
99 | 73 | | |
100 | 74 | | |
101 | 75 | | |
| |||
0 commit comments