Vector3.equals()
Instance method on Vector3.
Description
- Checks if this Vector3 is equal to the specified Vector3. |
- Checks if this Vector3 is equal to the specified X, Y and Z values. |
- Checks if all components of this Vector3 are equal to the specified value. |
- Checks if this Vector3 is equal to the specified object. |
Method Signature
equals(Vector3)
equals(float, float, float)
equals(float)
equals(Object)
Mathematical Definition
Component-wise or runtime-defined transformation based on overload.
Parameters
Vector3: 3D vector input.float: scalar numeric input.Object: polymorphic operand; runtime resolves supported numeric/vector types.
Returns
boolean: returned by overloads of this method.
Mutability
- Does not modify the current vector unless explicitly using a
Local/Equalvariant.
Edge Cases
- Zero vectors can produce degenerate outputs for geometric methods.
NaNandInfinityinputs propagate according to IEEE-754 floating-point behavior.- Repeated operations may accumulate floating-point precision error.
Usage Example
Vector3 a = new Vector3(1f, 2f, 3f);
// Call the method according to your overload requirements.
// Example:
// a.equals(...);
Mathematical Example
Example input/output depends on overload; for vector arithmetic operations this is typically computed per-component.