GizmoMath::IntervalIntervalIntersection

Find the intersection of two floating point intervals in which the interval inputs contain pairs of floats sorted in increasing order.

Choose your operating system:

Windows

macOS

Linux

References

Module

InteractiveToolsFramework

Header

/Engine/Source/Runtime/InteractiveToolsFramework/Public/BaseGizmos/GizmoMath.h

Include

#include "BaseGizmos/GizmoMath.h"

Source

/Engine/Source/Runtime/InteractiveToolsFramework/Private/BaseGizmos/GizmoMath.cpp

Syntax

namespace GizmoMath
{
    template<typename RealType>
    void GizmoMath::IntervalIntervalIntersection
    (
        const RealType Interval0,
        const RealType Interval1,
        int & OutNumIntersections,
        RealType & OutResult0,
        RealType & OutResult1
    )
}

Remarks

Find the intersection of two floating point intervals in which the interval inputs contain pairs of floats sorted in increasing order. Returns the number of intersections intersection and intersection results in increasing order.