Navigation
API > API/Runtime > API/Runtime/GeometryCore
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.
| Name | TSphericalFibonacci |
| Type | class |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/Sampling/SphericalFibonacci.h |
| Include Path | #include "Sampling/SphericalFibonacci.h" |
Syntax
template<typename RealType>
class TSphericalFibonacci
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TSphericalFibonacci
(
int32 NumPoints |
Sampling/SphericalFibonacci.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| N | int32 | Sampling/SphericalFibonacci.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 FindIndex
(
const TVector< RealType >& P |
Sampling/SphericalFibonacci.h | ||
int32 Num() |
Sampling/SphericalFibonacci.h | ||
TVector< RealType > Point
(
int32 Index |
Sampling/SphericalFibonacci.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static RealType MultiplyAddFrac
(
RealType a, |
MultiplyAddFrac(A,B) = multiply_add( A ,B, -floor(A*B) ) | Sampling/SphericalFibonacci.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TVector< RealType > operator[]
(
int32 Index |
Sampling/SphericalFibonacci.h |