载入中...
搜索中...
未找到
SplineCircularArc.cpp 文件参考
#include "procgen/spline/SplineCircularArc.h"
#include <algorithm>
#include <cmath>
#include <limits>
#include <numbers>
#include "common/Assert.h"

浏览源代码.

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::procgen
 
namespace  eve::procgen::detail
 

函数

Result< std::array< float, 3 > > eve::procgen::detail::scaleCircularTangentToChord (const CircularArcSampleXZ &tangent, double heightDerivative, const std::array< double, 3 > &chord)
 Scale a circular neighbor tangent to its owning 3D marker chord.
 
Result< CircularArcXZ > eve::procgen::detail::makeCircularArcXZ (double ax, double az, double bx, double bz, double dx, double dz, CircularArcReference reference)
 Construct a finite circle from two endpoints and one endpoint direction. @ownership Returns owning coefficients without retaining inputs. @thread Synchronous caller; no callbacks or mutable services. @cost Constant span-sized geometry setup with trigonometry; reuse coefficients for multiple samples.
 
Result< CircularArcXZ > eve::procgen::detail::makeCircularLeadArcXZ (double ax, double az, double bx, double bz, double dx, double dz, double endDx, double endDz)
 Fit a forward straight lead followed by a circle tangent to both neighboring directions. A negative lead emits the endpoint chord; a singular fit retains the one-direction circle contract. @ownership Returns owned derived coefficients; inputs are not retained. @thread Pure synchronous value computation, no callbacks. @cost Constant span-sized geometry setup, amortized over samples.
 
CircularArcSampleXZ eve::procgen::detail::sampleCircularArcXZ (const CircularArcXZ &arc, double u)
 Sample validated coefficients with u in [0,1]; endpoints remain exact. @ownership Returns a copied sample; retains nothing. @thread Synchronous caller; no callbacks. @cost Constant arithmetic/trigonometry per sample after span setup.