class_segmentshape2d.rst 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead.
  3. .. _class_SegmentShape2D:
  4. SegmentShape2D
  5. ==============
  6. **Inherits:** :ref:`Shape2D<class_shape2d>` **<** :ref:`Resource<class_resource>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
  7. **Category:** Core
  8. Brief Description
  9. -----------------
  10. Segment Shape for 2D Collision Detection.
  11. Member Functions
  12. ----------------
  13. +--------------------------------+----------------------------------------------------------------------------------------+
  14. | :ref:`Vector2<class_vector2>` | :ref:`get_a<class_SegmentShape2D_get_a>` **(** **)** const |
  15. +--------------------------------+----------------------------------------------------------------------------------------+
  16. | :ref:`Vector2<class_vector2>` | :ref:`get_b<class_SegmentShape2D_get_b>` **(** **)** const |
  17. +--------------------------------+----------------------------------------------------------------------------------------+
  18. | void | :ref:`set_a<class_SegmentShape2D_set_a>` **(** :ref:`Vector2<class_vector2>` a **)** |
  19. +--------------------------------+----------------------------------------------------------------------------------------+
  20. | void | :ref:`set_b<class_SegmentShape2D_set_b>` **(** :ref:`Vector2<class_vector2>` b **)** |
  21. +--------------------------------+----------------------------------------------------------------------------------------+
  22. Description
  23. -----------
  24. Segment Shape for 2D Collision Detection, consists of two points, 'a' and 'b'.
  25. Member Function Description
  26. ---------------------------
  27. .. _class_SegmentShape2D_get_a:
  28. - :ref:`Vector2<class_vector2>` **get_a** **(** **)** const
  29. Return the first point's position.
  30. .. _class_SegmentShape2D_get_b:
  31. - :ref:`Vector2<class_vector2>` **get_b** **(** **)** const
  32. Return the second point's position.
  33. .. _class_SegmentShape2D_set_a:
  34. - void **set_a** **(** :ref:`Vector2<class_vector2>` a **)**
  35. Set the first point's position.
  36. .. _class_SegmentShape2D_set_b:
  37. - void **set_b** **(** :ref:`Vector2<class_vector2>` b **)**
  38. Set the second point's position.