Skip to content

Commit

Permalink
chore: update nalgebra 0.30 -> 0.32, parry2d 0.8 -> 0.13
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanceras committed Jul 23, 2023
1 parent 238305c commit c48dc55
Show file tree
Hide file tree
Showing 7 changed files with 73 additions and 102 deletions.
136 changes: 56 additions & 80 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ members = [
"packages/svgbob_server",
]

[patch.crates-io]
#mt-dom = { git = "https://github.com/ivanceras/mt-dom.git", branch = "master" }
#sauron = { git = "https://github.com/ivanceras/sauron.git", branch = "develop" }
#jss = { path = "../jss" }

[profile.release]
opt-level = 3
lto = true
Expand Down
4 changes: 2 additions & 2 deletions packages/svgbob/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ license = "Apache-2.0"
edition = "2021"

[dependencies]
nalgebra = "0.30.1"
parry2d = "0.8.0"
nalgebra = "0.32.1"
parry2d = "0.13.5"
lazy_static = "1.3.0"
sauron = { version = "0.57.0", default-features = false}
#sauron = { path = "../../../sauron", default-features = false}
Expand Down
8 changes: 4 additions & 4 deletions packages/svgbob/src/buffer/cell_buffer/cell.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::{util, Point};
use parry2d::{
bounding_volume::AABB,
bounding_volume::Aabb,
math::Isometry,
query::{intersection_test, PointQuery},
shape::{Polyline, Segment},
Expand Down Expand Up @@ -129,7 +129,7 @@ impl Cell {

/// the bounding box of this cell
#[inline]
fn bounding_box(&self) -> AABB {
fn bounding_box(&self) -> Aabb {
let start = Point::new(
self.x as f32 * Self::width(),
self.y as f32 * Self::height(),
Expand All @@ -138,7 +138,7 @@ impl Cell {
(self.x + 1) as f32 * Self::width(),
(self.y + 1) as f32 * Self::height(),
);
AABB::new(*start, *end)
Aabb::new(*start, *end)
}

/// Convert the bounding box aabb to polyline segment
Expand Down Expand Up @@ -433,7 +433,7 @@ mod tests {
#[test]
fn test_aabb() {
assert_eq!(
AABB::new(*Point::new(0.0, 0.0), *Point::new(1.0, 2.0)),
Aabb::new(*Point::new(0.0, 0.0), *Point::new(1.0, 2.0)),
Cell::new(0, 0).bounding_box()
);
}
Expand Down
Loading

0 comments on commit c48dc55

Please sign in to comment.