Files
godot-docs/classes/class_segmentshape2d.rst
Rémi Verschelde fa00c829f0 Add inheritance path
Also fix parsing of [method (Class.)name]
2016-02-08 18:31:35 +01:00

61 lines
2.1 KiB
ReStructuredText

.. _class_SegmentShape2D:
SegmentShape2D
==============
**Inherits:** :ref:`Shape2D<class_shape2d>` **<** :ref:`Resource<class_resource>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
**Category:** Core
Brief Description
-----------------
Segment Shape for 2D Collision Detection.
Member Functions
----------------
+--------------------------------+----------------------------------------------------------------------------------------+
| void | :ref:`set_a<class_SegmentShape2D_set_a>` **(** :ref:`Vector2<class_vector2>` a **)** |
+--------------------------------+----------------------------------------------------------------------------------------+
| :ref:`Vector2<class_vector2>` | :ref:`get_a<class_SegmentShape2D_get_a>` **(** **)** const |
+--------------------------------+----------------------------------------------------------------------------------------+
| void | :ref:`set_b<class_SegmentShape2D_set_b>` **(** :ref:`Vector2<class_vector2>` b **)** |
+--------------------------------+----------------------------------------------------------------------------------------+
| :ref:`Vector2<class_vector2>` | :ref:`get_b<class_SegmentShape2D_get_b>` **(** **)** const |
+--------------------------------+----------------------------------------------------------------------------------------+
Description
-----------
Segment Shape for 2D Collision Detection, consists of two points, 'a' and 'b'.
Member Function Description
---------------------------
.. _class_SegmentShape2D_set_a:
- void **set_a** **(** :ref:`Vector2<class_vector2>` a **)**
Set the first point's position.
.. _class_SegmentShape2D_get_a:
- :ref:`Vector2<class_vector2>` **get_a** **(** **)** const
Return the first point's position.
.. _class_SegmentShape2D_set_b:
- void **set_b** **(** :ref:`Vector2<class_vector2>` b **)**
Set the second point's position.
.. _class_SegmentShape2D_get_b:
- :ref:`Vector2<class_vector2>` **get_b** **(** **)** const
Return the second point's position.