Skip to content

Commit e9d5b92

Browse files
committed
Fix vector2_test::project, hide to_glam_real()
1 parent 90665f8 commit e9d5b92

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

godot-core/src/builtin/vectors/vector2i.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ impl Vector2i {
5454
}
5555

5656
/// Converts `self` to the corresponding [`real`] `glam` type.
57+
#[doc(hidden)]
5758
#[inline]
5859
pub fn to_glam_real(self) -> RVec2 {
5960
RVec2::new(self.x as real, self.y as real)

godot-core/src/builtin/vectors/vector3i.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ impl Vector3i {
5858
}
5959

6060
/// Converts `self` to the corresponding [`real`] `glam` type.
61+
#[doc(hidden)]
6162
#[inline]
6263
pub fn to_glam_real(self) -> RVec3 {
6364
RVec3::new(self.x as real, self.y as real, self.z as real)

godot-core/src/builtin/vectors/vector4i.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ impl Vector4i {
6161
}
6262

6363
/// Converts `self` to the corresponding [`real`] `glam` type.
64+
#[doc(hidden)]
6465
#[inline]
6566
pub fn to_glam_real(self) -> RVec4 {
6667
RVec4::new(

itest/rust/src/builtin_tests/geometry/vector_test/vector2_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ fn project() {
361361
let a = Vector2::new(1.2, -3.4);
362362
let b = Vector2::new(-5.6, 7.8);
363363

364-
assert_eq!(a.project(b), a.as_inner().project(b));
364+
assert_eq_approx!(a.project(b), a.as_inner().project(b));
365365
}
366366

367367
#[itest]

0 commit comments

Comments
 (0)