Chaos::Utilities::IntersectLineSegments2D

Detects intersections between 2D line segments, returns intersection results as times along each line segment - these times can be used to calculate exact intersection locations

Windows
MacOS
Linux

References

Module

Chaos

Header

/Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/Utilities.h

Include

#include "Chaos/Utilities.h"

Syntax

namespace Chaos
{
    namespace Utilities
    {
        template<typename T>
        bool Chaos::Utilities::IntersectLineSegments2D
        (
            const TVector< T, 2 > & InStartA,
            const TVector< T, 2 > & InEndA,
            const TVector< T, 2 > & InStartB,
            const TVector< T, 2 > & InEndB,
            T & OutTA,
            T & OutTB
        )
    }
}

Remarks

Detects intersections between 2D line segments, returns intersection results as times along each line segment - these times can be used to calculate exact intersection locations

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss