fix: Vector2/3/4 + Quaternion equals method return type. (#322)

* Fix return type.

* Nvm
This commit is contained in:
Karim Mk 2026-04-14 10:05:52 +01:00 committed by GitHub
parent b5058dd631
commit 4b6a05cd10
Failed to generate hash of commit
2 changed files with 8 additions and 8 deletions

View file

@ -199,7 +199,7 @@ pub const Vector2 = extern struct {
}
/// Check whether two given vectors are almost equal
pub fn equals(self: Vector2, q: Vector2) i32 {
pub fn equals(self: Vector2, q: Vector2) bool {
return math.vector2Equals(self, q);
}
@ -416,7 +416,7 @@ pub const Vector3 = extern struct {
}
/// Check whether two given vectors are almost equal
pub fn equals(p: Vector3, q: Vector3) i32 {
pub fn equals(p: Vector3, q: Vector3) bool {
return math.vector3Equals(p, q);
}
@ -550,7 +550,7 @@ pub const Vector4 = extern struct {
}
/// Check whether two given quaternions are almost equal
pub fn equals(p: Vector4, q: Vector4) i32 {
pub fn equals(p: Vector4, q: Vector4) bool {
return math.vector4Equals(p, q);
}
};
@ -634,7 +634,7 @@ pub const Quaternion = extern struct {
}
/// Check whether two given quaternions are almost equal
pub fn equals(p: Quaternion, q: Quaternion) i32 {
pub fn equals(p: Quaternion, q: Quaternion) bool {
return math.quaternionEquals(p, q);
}