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