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

* Fix return type.

* Nvm
This commit is contained in:
Karim Mk authored and GitHub committed 2026-04-14 11:05:52 +02:00
1 parent b5058dd631
commit 4b6a05cd10
2 files changed
+8 -8

No files matched your search

+4 -4
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);
}
+4 -4
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);
}