Skip to content

Commit

Permalink
Remove the _xy suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Apr 26, 2024
1 parent 5ab0ff0 commit 4e0215b
Show file tree
Hide file tree
Showing 9 changed files with 71 additions and 71 deletions.
4 changes: 2 additions & 2 deletions crates/re_types/definitions/rerun/datatypes/aabb2d.fbs
Expand Up @@ -14,8 +14,8 @@ struct AABB2D (
"attr.rust.repr": "C"
) {
/// The minimum bounds; usually left-top corner.
min_xy: [double: 2] (order: 100);
min: [double: 2] (order: 100);

/// The maximum bounds; usually right-bottom corner.
max_xy: [double: 2] (order: 200);
max: [double: 2] (order: 200);
}
4 changes: 2 additions & 2 deletions crates/re_types/src/components/aabb2d.rs

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

4 changes: 2 additions & 2 deletions crates/re_types/src/components/aabb2d_ext.rs
Expand Up @@ -4,8 +4,8 @@ impl From<AABB2D> for emath::Rect {
#[inline]
fn from(v: AABB2D) -> Self {
Self {
min: emath::pos2(v.min_xy[0] as f32, v.min_xy[1] as f32),
max: emath::pos2(v.max_xy[0] as f32, v.max_xy[1] as f32),
min: emath::pos2(v.min[0] as f32, v.min[1] as f32),
max: emath::pos2(v.max[0] as f32, v.max[1] as f32),
}
}
}
86 changes: 43 additions & 43 deletions crates/re_types/src/datatypes/aabb2d.rs

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

8 changes: 4 additions & 4 deletions crates/re_types/src/datatypes/aabb2d_ext.rs
Expand Up @@ -4,8 +4,8 @@ impl From<emath::Rect> for AABB2D {
#[inline]
fn from(v: emath::Rect) -> Self {
Self {
min_xy: [v.min.x as f64, v.min.y as f64],
max_xy: [v.max.x as f64, v.max.y as f64],
min: [v.min.x as f64, v.min.y as f64],
max: [v.max.x as f64, v.max.y as f64],
}
}
}
Expand All @@ -14,8 +14,8 @@ impl From<AABB2D> for emath::Rect {
#[inline]
fn from(v: AABB2D) -> Self {
Self {
min: emath::pos2(v.min_xy[0] as f32, v.min_xy[1] as f32),
max: emath::pos2(v.max_xy[0] as f32, v.max_xy[1] as f32),
min: emath::pos2(v.min[0] as f32, v.min[1] as f32),
max: emath::pos2(v.max[0] as f32, v.max[1] as f32),
}
}
}
4 changes: 2 additions & 2 deletions docs/content/reference/types/datatypes/aabb2d.md

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

12 changes: 6 additions & 6 deletions rerun_cpp/src/rerun/datatypes/aabb2d.cpp

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

4 changes: 2 additions & 2 deletions rerun_cpp/src/rerun/datatypes/aabb2d.hpp

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

0 comments on commit 4e0215b

Please sign in to comment.