UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
UE::Geometry::THemisphericalFibonacci< RealType > Class Template Reference

#include <SphericalFibonacci.h>

Public Types

enum class  EDistribution { Uniform , Cosine }
 

Public Member Functions

 THemisphericalFibonacci (int32 NumPoints=64, EDistribution Dist=EDistribution::Uniform)
 
int32 Num () const
 
TVector< RealType > Point (int32 Index) const
 
TVector< RealType > operator[] (int32 Index) const
 

Public Attributes

int32 N = 64
 
EDistribution Distribution = EDistribution::Uniform
 

Detailed Description

template<typename RealType>
class UE::Geometry::THemisphericalFibonacci< RealType >

A hemisphere point set generated using a Fibonacci lattice where the i'th point of an N point set can be computed directly.

Z is "up" in the hemisphere.

Member Enumeration Documentation

◆ EDistribution

Enumerator
Uniform 
Cosine 

Constructor & Destructor Documentation

◆ THemisphericalFibonacci()

template<typename RealType >
UE::Geometry::THemisphericalFibonacci< RealType >::THemisphericalFibonacci ( int32  NumPoints = 64,
EDistribution  Dist = EDistribution::Uniform 
)
inline

Member Function Documentation

◆ Num()

template<typename RealType >
int32 UE::Geometry::THemisphericalFibonacci< RealType >::Num ( ) const
inline

◆ operator[]()

template<typename RealType >
TVector< RealType > UE::Geometry::THemisphericalFibonacci< RealType >::operator[] ( int32  Index) const
inline
Parameters
Indexpoint index in range [0,Num()-1]
Returns
sphere point for given Index

◆ Point()

template<typename RealType >
TVector< RealType > UE::Geometry::THemisphericalFibonacci< RealType >::Point ( int32  Index) const
inline
Parameters
Indexpoint index in range [0,Num()-1]
Returns
sphere point for given Index

Member Data Documentation

◆ Distribution

◆ N

template<typename RealType >
int32 UE::Geometry::THemisphericalFibonacci< RealType >::N = 64

The documentation for this class was generated from the following file: