|
@@ -273,6 +273,7 @@
|
|
<description>
|
|
<description>
|
|
Returns [code]true[/code] if the vectors are not equal.
|
|
Returns [code]true[/code] if the vectors are not equal.
|
|
[b]Note:[/b] Due to floating-point precision errors, consider using [method is_equal_approx] instead, which is more reliable.
|
|
[b]Note:[/b] Due to floating-point precision errors, consider using [method is_equal_approx] instead, which is more reliable.
|
|
|
|
+ [b]Note:[/b] Vectors with [constant @GDScript.NAN] elements don't behave the same as other vectors. Therefore, the results from this operator may not be accurate if NaNs are included.
|
|
</description>
|
|
</description>
|
|
</operator>
|
|
</operator>
|
|
<operator name="operator *">
|
|
<operator name="operator *">
|
|
@@ -361,6 +362,7 @@
|
|
<param index="0" name="right" type="Vector4" />
|
|
<param index="0" name="right" type="Vector4" />
|
|
<description>
|
|
<description>
|
|
Compares two [Vector4] vectors by first checking if the X value of the left vector is less than the X value of the [param right] vector. If the X values are exactly equal, then it repeats this check with the Y values of the two vectors, Z values of the two vectors, and then with the W values. This operator is useful for sorting vectors.
|
|
Compares two [Vector4] vectors by first checking if the X value of the left vector is less than the X value of the [param right] vector. If the X values are exactly equal, then it repeats this check with the Y values of the two vectors, Z values of the two vectors, and then with the W values. This operator is useful for sorting vectors.
|
|
|
|
+ [b]Note:[/b] Vectors with [constant @GDScript.NAN] elements don't behave the same as other vectors. Therefore, the results from this operator may not be accurate if NaNs are included.
|
|
</description>
|
|
</description>
|
|
</operator>
|
|
</operator>
|
|
<operator name="operator <=">
|
|
<operator name="operator <=">
|
|
@@ -368,6 +370,7 @@
|
|
<param index="0" name="right" type="Vector4" />
|
|
<param index="0" name="right" type="Vector4" />
|
|
<description>
|
|
<description>
|
|
Compares two [Vector4] vectors by first checking if the X value of the left vector is less than or equal to the X value of the [param right] vector. If the X values are exactly equal, then it repeats this check with the Y values of the two vectors, Z values of the two vectors, and then with the W values. This operator is useful for sorting vectors.
|
|
Compares two [Vector4] vectors by first checking if the X value of the left vector is less than or equal to the X value of the [param right] vector. If the X values are exactly equal, then it repeats this check with the Y values of the two vectors, Z values of the two vectors, and then with the W values. This operator is useful for sorting vectors.
|
|
|
|
+ [b]Note:[/b] Vectors with [constant @GDScript.NAN] elements don't behave the same as other vectors. Therefore, the results from this operator may not be accurate if NaNs are included.
|
|
</description>
|
|
</description>
|
|
</operator>
|
|
</operator>
|
|
<operator name="operator ==">
|
|
<operator name="operator ==">
|
|
@@ -376,6 +379,7 @@
|
|
<description>
|
|
<description>
|
|
Returns [code]true[/code] if the vectors are exactly equal.
|
|
Returns [code]true[/code] if the vectors are exactly equal.
|
|
[b]Note:[/b] Due to floating-point precision errors, consider using [method is_equal_approx] instead, which is more reliable.
|
|
[b]Note:[/b] Due to floating-point precision errors, consider using [method is_equal_approx] instead, which is more reliable.
|
|
|
|
+ [b]Note:[/b] Vectors with [constant @GDScript.NAN] elements don't behave the same as other vectors. Therefore, the results from this operator may not be accurate if NaNs are included.
|
|
</description>
|
|
</description>
|
|
</operator>
|
|
</operator>
|
|
<operator name="operator >">
|
|
<operator name="operator >">
|
|
@@ -383,6 +387,7 @@
|
|
<param index="0" name="right" type="Vector4" />
|
|
<param index="0" name="right" type="Vector4" />
|
|
<description>
|
|
<description>
|
|
Compares two [Vector4] vectors by first checking if the X value of the left vector is greater than the X value of the [param right] vector. If the X values are exactly equal, then it repeats this check with the Y values of the two vectors, Z values of the two vectors, and then with the W values. This operator is useful for sorting vectors.
|
|
Compares two [Vector4] vectors by first checking if the X value of the left vector is greater than the X value of the [param right] vector. If the X values are exactly equal, then it repeats this check with the Y values of the two vectors, Z values of the two vectors, and then with the W values. This operator is useful for sorting vectors.
|
|
|
|
+ [b]Note:[/b] Vectors with [constant @GDScript.NAN] elements don't behave the same as other vectors. Therefore, the results from this operator may not be accurate if NaNs are included.
|
|
</description>
|
|
</description>
|
|
</operator>
|
|
</operator>
|
|
<operator name="operator >=">
|
|
<operator name="operator >=">
|
|
@@ -390,6 +395,7 @@
|
|
<param index="0" name="right" type="Vector4" />
|
|
<param index="0" name="right" type="Vector4" />
|
|
<description>
|
|
<description>
|
|
Compares two [Vector4] vectors by first checking if the X value of the left vector is greater than or equal to the X value of the [param right] vector. If the X values are exactly equal, then it repeats this check with the Y values of the two vectors, Z values of the two vectors, and then with the W values. This operator is useful for sorting vectors.
|
|
Compares two [Vector4] vectors by first checking if the X value of the left vector is greater than or equal to the X value of the [param right] vector. If the X values are exactly equal, then it repeats this check with the Y values of the two vectors, Z values of the two vectors, and then with the W values. This operator is useful for sorting vectors.
|
|
|
|
+ [b]Note:[/b] Vectors with [constant @GDScript.NAN] elements don't behave the same as other vectors. Therefore, the results from this operator may not be accurate if NaNs are included.
|
|
</description>
|
|
</description>
|
|
</operator>
|
|
</operator>
|
|
<operator name="operator []">
|
|
<operator name="operator []">
|