.. index:: pair: class; EE::Math::Line2 .. _doxid-class_e_e_1_1_math_1_1_line2: template class EE::Math::Line2 ============================== .. toctree:: :hidden: Overview ~~~~~~~~ .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include template class Line2 { public: // fields :ref:`Vector2` :target:`V`[2]; // construction :target:`Line2`(); :target:`Line2`(const :ref:`Vector2`& v1, const :ref:`Vector2`& v2); // methods :ref:`Vector2`& :target:`p1`(); :ref:`Vector2`& :target:`p2`(); :ref:`Vector2` :target:`getNormal`(); T :ref:`getAngle`(); bool :ref:`intersect`(Line2& line, T* X = NULL, T* Y = NULL); }; .. _details-class_e_e_1_1_math_1_1_line2: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Methods ------- .. index:: pair: function; getAngle .. _doxid-class_e_e_1_1_math_1_1_line2_1acf54eb951aadda5a3ffeb8f1a17f6fa4: .. ref-code-block:: cpp :class: doxyrest-title-code-block T getAngle() .. rubric:: Returns: The angle of the line against the x axis-aligned line .. index:: pair: function; intersect .. _doxid-class_e_e_1_1_math_1_1_line2_1a61a688742e611b0b5218315321616054: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool intersect(Line2& line, T* X = NULL, T* Y = NULL) Determine if two lines are intersecting .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - line - The line to intersect * - X - Optional Pointer returning the X point position of intersection * - Y - Optional Pointer returning the Y point position of intersection .. rubric:: Returns: True if the lines are intersecting