VectorUtil::VectorTanHalfAngle

Tan(theta/2) = +/- sqrt( (1-cos(theta)) / (1+cos(theta)) )

Windows
MacOS
Linux

References

Module

GeometricObjects

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/GeometricObjects/Public/VectorUtil.h

Include

#include "VectorUtil.h"

Syntax

namespace VectorUtil
{
    template<typename RealType>
    RealType VectorUtil::VectorTanHalfAngle
    (
        const FVector3< RealType > & A,
        const FVector3< RealType > & B
    )
}

Remarks

Tan(theta/2) = +/- sqrt( (1-cos(theta)) / (1+cos(theta)) )

Returns

positive value of tan(theta/2) where theta is angle between normalized vectors A and B

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