Skip to content

Commit

Permalink
Merge pull request #1293 from hannobraun/update
Browse files Browse the repository at this point in the history
Update dependencies
  • Loading branch information
hannobraun authored Oct 31, 2022
2 parents 69ff6de + 0f8ef5f commit 2f608f6
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 43 deletions.
65 changes: 36 additions & 29 deletions Cargo.lock

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

1 change: 0 additions & 1 deletion crates/fj-host/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ categories.workspace = true
cargo_metadata = "0.15.0"
crossbeam-channel = "0.5.6"
fj.workspace = true
fj-interop.workspace = true
libloading = "0.7.2"
notify = "5.0.0"
thiserror = "1.0.35"
1 change: 0 additions & 1 deletion crates/fj-kernel/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ categories.workspace = true
fj-interop.workspace = true
fj-math.workspace = true
parking_lot = "0.12.0"
parry2d-f64 = "0.10.0"
pretty_assertions = "1.3.0"
robust-predicates = "0.1.4"
spade = "2.0.0"
Expand Down
4 changes: 2 additions & 2 deletions crates/fj-math/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ approx = "0.5.1"
decorum = "0.3.1"
nalgebra = "0.31.3"
num-traits = "0.2.15"
parry2d-f64 = "0.10.0"
parry3d-f64 = "0.10.0"
parry2d-f64 = "0.11.1"
parry3d-f64 = "0.11.1"
robust-predicates = "0.1.4"
20 changes: 10 additions & 10 deletions crates/fj-math/src/aabb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ impl Aabb<2> {
.into_iter()
.map(|point| point.into().to_na())
.collect();
parry2d_f64::bounding_volume::AABB::from_points(&points).into()
parry2d_f64::bounding_volume::Aabb::from_points(&points).into()
}

/// Construct a 2-dimensional AABB from a Parry AABB
pub fn from_parry(aabb: parry2d_f64::bounding_volume::AABB) -> Self {
pub fn from_parry(aabb: parry2d_f64::bounding_volume::Aabb) -> Self {
Self {
min: aabb.mins.into(),
max: aabb.maxs.into(),
Expand All @@ -80,20 +80,20 @@ impl Aabb<3> {
.into_iter()
.map(|point| point.into().to_na())
.collect();
parry3d_f64::bounding_volume::AABB::from_points(&points).into()
parry3d_f64::bounding_volume::Aabb::from_points(&points).into()
}

/// Construct a 3-dimensional AABB from a Parry AABB
pub fn from_parry(aabb: parry3d_f64::bounding_volume::AABB) -> Self {
pub fn from_parry(aabb: parry3d_f64::bounding_volume::Aabb) -> Self {
Self {
min: aabb.mins.into(),
max: aabb.maxs.into(),
}
}

/// Convert the AABB to a Parry AABB
pub fn to_parry(self) -> parry3d_f64::bounding_volume::AABB {
parry3d_f64::bounding_volume::AABB {
pub fn to_parry(self) -> parry3d_f64::bounding_volume::Aabb {
parry3d_f64::bounding_volume::Aabb {
mins: self.min.to_na(),
maxs: self.max.to_na(),
}
Expand Down Expand Up @@ -128,14 +128,14 @@ impl Aabb<3> {
}
}

impl From<parry2d_f64::bounding_volume::AABB> for Aabb<2> {
fn from(aabb: parry2d_f64::bounding_volume::AABB) -> Self {
impl From<parry2d_f64::bounding_volume::Aabb> for Aabb<2> {
fn from(aabb: parry2d_f64::bounding_volume::Aabb) -> Self {
Self::from_parry(aabb)
}
}

impl From<parry3d_f64::bounding_volume::AABB> for Aabb<3> {
fn from(aabb: parry3d_f64::bounding_volume::AABB) -> Self {
impl From<parry3d_f64::bounding_volume::Aabb> for Aabb<3> {
fn from(aabb: parry3d_f64::bounding_volume::Aabb) -> Self {
Self::from_parry(aabb)
}
}
Expand Down

0 comments on commit 2f608f6

Please sign in to comment.