![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <SphericalFibonacci.h>
Public Member Functions | |
| TSphericalFibonacci (int32 NumPoints=64) | |
| int32 | Num () const |
| TVector< RealType > | Point (int32 Index) const |
| TVector< RealType > | operator[] (int32 Index) const |
| int32 | FindIndex (const TVector< RealType > &P) |
Public Attributes | |
| int32 | N = 64 |
Static Protected Member Functions | |
| static RealType | MultiplyAddFrac (RealType a, RealType b) |
A Spherical Fibonacci (SF) Point Set is a set of points that are roughly evenly distributed on a sphere. The points lie on a spiral, see https://dl.acm.org/doi/10.1145/2816795.2818131 for more information. The i-th SF point an N-point set can be calculated directly. For a given (normalized) point P, finding the nearest SF point (ie mapping back to i) can be done in constant time.
Z is "up" in the sphere.
|
inline |
|
inline |
|
inlinestaticprotected |
|
inline |
|
inline |
| Index | point index in range [0,Num()-1] |
|
inline |
| Index | point index in range [0,Num()-1] |
| int32 UE::Geometry::TSphericalFibonacci< RealType >::N = 64 |