Remove nalgebra dependency
- Implement our own `Point` and `Vector` types - Make `Rectangle` not generic
This commit is contained in:
parent
343cafa1ee
commit
eecac7b5d1
18 changed files with 69 additions and 31 deletions
|
|
@ -41,7 +41,7 @@ impl<'a> Layout<'a> {
|
|||
/// [`Layout`]: struct.Layout.html
|
||||
/// [`Rectangle`]: struct.Rectangle.html
|
||||
/// [`Node`]: struct.Node.html
|
||||
pub fn bounds(&self) -> Rectangle<f32> {
|
||||
pub fn bounds(&self) -> Rectangle {
|
||||
Rectangle {
|
||||
x: self.position.x,
|
||||
y: self.position.y,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue