pandemonium_engine/doc/classes/Vector4.xml

221 lines
5.5 KiB
XML
Raw Normal View History

2022-08-21 00:40:49 +02:00
<?xml version="1.0" encoding="UTF-8" ?>
2024-04-26 17:32:25 +02:00
<class name="Vector4" version="4.4">
2022-08-21 00:40:49 +02:00
<brief_description>
</brief_description>
<description>
</description>
<tutorials>
</tutorials>
<methods>
<method name="Vector4">
<return type="Vector4" />
<argument index="0" name="from" type="Vector4i" />
<description>
</description>
</method>
<method name="Vector4">
<return type="Vector4" />
<argument index="0" name="x" type="float" />
<argument index="1" name="y" type="float" />
<argument index="2" name="z" type="float" />
<argument index="3" name="w" type="float" />
<description>
</description>
</method>
<method name="abs">
<return type="Vector4" />
<description>
</description>
</method>
<method name="ceil">
<return type="Vector4" />
<description>
</description>
</method>
<method name="clamp">
<return type="Vector4" />
<argument index="0" name="min" type="Vector4" />
<argument index="1" name="max" type="Vector4" />
<description>
</description>
</method>
<method name="cubic_interpolate">
<return type="Vector4" />
<argument index="0" name="b" type="Vector4" />
<argument index="1" name="pre_a" type="Vector4" />
<argument index="2" name="post_b" type="Vector4" />
<argument index="3" name="weight" type="float" />
<description>
</description>
</method>
<method name="direction_to">
<return type="Vector4" />
<argument index="0" name="b" type="Vector4" />
<description>
</description>
</method>
<method name="distance_squared_to">
<return type="float" />
<argument index="0" name="b" type="Vector4" />
<description>
</description>
</method>
<method name="distance_to">
<return type="float" />
<argument index="0" name="b" type="Vector4" />
<description>
</description>
</method>
<method name="dot">
<return type="float" />
<argument index="0" name="b" type="Vector4" />
<description>
</description>
</method>
<method name="floor">
<return type="Vector4" />
<description>
</description>
</method>
<method name="get_axis">
<return type="int" />
<argument index="0" name="axis" type="int" />
<description>
</description>
</method>
<method name="inverse">
<return type="Vector4" />
<description>
</description>
</method>
<method name="is_equal_approx">
<return type="bool" />
<argument index="0" name="v" type="Vector4" />
<description>
</description>
</method>
2024-04-21 15:39:49 +02:00
<method name="is_normalized">
2024-04-14 16:59:12 +02:00
<return type="bool" />
<description>
</description>
</method>
2024-04-21 15:39:49 +02:00
<method name="is_zero_approx">
2022-08-21 00:40:49 +02:00
<return type="bool" />
<description>
2024-04-21 15:39:49 +02:00
Returns [code]true[/code] if this vector's values are approximately zero, by running [method @GDScript.is_zero_approx] on each component.
This method is faster than using [method is_equal_approx] with one value as a zero vector.
2022-08-21 00:40:49 +02:00
</description>
</method>
<method name="length">
<return type="float" />
<description>
</description>
</method>
<method name="length_squared">
<return type="float" />
<description>
</description>
</method>
2023-06-13 16:51:37 +02:00
<method name="limit_length">
<return type="Vector4" />
<argument index="0" name="len" type="float" default="1.0" />
<description>
</description>
</method>
<method name="linear_interpolate">
2022-08-21 00:40:49 +02:00
<return type="Vector4" />
<argument index="0" name="to" type="Vector4" />
<argument index="1" name="weight" type="float" />
<description>
</description>
</method>
<method name="max_axis">
<return type="int" />
<description>
</description>
</method>
<method name="min_axis">
<return type="int" />
<description>
</description>
</method>
<method name="normalize">
<description>
</description>
</method>
<method name="normalized">
<return type="Vector4" />
<description>
</description>
</method>
<method name="posmod">
<return type="Vector4" />
<argument index="0" name="mod" type="float" />
<description>
</description>
</method>
<method name="posmodv">
<return type="Vector4" />
<argument index="0" name="modv" type="Vector4" />
<description>
</description>
</method>
<method name="round">
<return type="Vector4" />
<description>
</description>
</method>
<method name="set_all">
<argument index="0" name="value" type="float" />
<description>
</description>
</method>
<method name="set_axis">
<argument index="0" name="axis" type="int" />
<argument index="1" name="value" type="float" />
<description>
</description>
</method>
<method name="sign">
<return type="Vector4" />
<description>
</description>
</method>
<method name="snap">
<argument index="0" name="val" type="Vector4" />
<description>
</description>
</method>
<method name="snapped">
<return type="Vector4" />
<argument index="0" name="by" type="Vector4" />
<description>
</description>
</method>
2023-06-13 16:51:37 +02:00
<method name="zero">
<description>
</description>
</method>
2022-08-21 00:40:49 +02:00
</methods>
<members>
<member name="w" type="float" setter="" getter="" default="0.0">
</member>
<member name="x" type="float" setter="" getter="" default="0.0">
</member>
<member name="y" type="float" setter="" getter="" default="0.0">
</member>
<member name="z" type="float" setter="" getter="" default="0.0">
</member>
</members>
<constants>
<constant name="AXIS_X" value="0">
</constant>
<constant name="AXIS_Y" value="1">
</constant>
<constant name="AXIS_Z" value="2">
</constant>
<constant name="AXIS_W" value="3">
</constant>
</constants>
</class>