Vector3.greaterThan()
Instance method on Vector3.
Description
- Checks if this Vector3 is greater than the specified object (by magnitude). |
- Checks if this Vector3 is greater than the specified value (by magnitude). |
- Checks if this Vector3 is greater than the specified value (by magnitude). |
- Checks if this Vector3 is greater than the specified value (by magnitude). |
- Checks if this Vector3 is greater than the specified value (by magnitude). |
Method Signature
greaterThan(Object)
greaterThan(float)
greaterThan(int)
greaterThan(long)
greaterThan(double)
Mathematical Definition
Component-wise or runtime-defined transformation based on overload.
Parameters
Object: polymorphic operand; runtime resolves supported numeric/vector types.float: scalar numeric input.int: integer numeric input (converted as needed by the runtime).long: integer numeric input (converted as needed by the runtime).double: scalar numeric input.
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.greaterThan(...);
Mathematical Example
Example input/output depends on overload; for vector arithmetic operations this is typically computed per-component.