|
@@ -279,6 +279,16 @@ namespace Godot
|
|
return new Vector4(1 / x, 1 / y, 1 / z, 1 / w);
|
|
return new Vector4(1 / x, 1 / y, 1 / z, 1 / w);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// Returns <see langword="true"/> if this vector is finite, by calling
|
|
|
|
+ /// <see cref="Mathf.IsFinite"/> on each component.
|
|
|
|
+ /// </summary>
|
|
|
|
+ /// <returns>Whether this vector is finite or not.</returns>
|
|
|
|
+ public readonly bool IsFinite()
|
|
|
|
+ {
|
|
|
|
+ return Mathf.IsFinite(x) && Mathf.IsFinite(y) && Mathf.IsFinite(z) && Mathf.IsFinite(w);
|
|
|
|
+ }
|
|
|
|
+
|
|
/// <summary>
|
|
/// <summary>
|
|
/// Returns <see langword="true"/> if the vector is normalized, and <see langword="false"/> otherwise.
|
|
/// Returns <see langword="true"/> if the vector is normalized, and <see langword="false"/> otherwise.
|
|
/// </summary>
|
|
/// </summary>
|