VectorUtil::VectorCot

Fast cotangent of angle between two vectors.

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::VectorCot
    (
        const FVector3< RealType > & V1,
        const FVector3< RealType > & V2
    )
}

Remarks

Fast cotangent of angle between two vectors. cot = cos/sin, both of which can be computed from vector identities

Returns

cotangent of angle between V1 and V2, or zero if result would be unstable (eg infinity)

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