载入中...
搜索中...
未找到
SplineCircularArc.h 文件参考
#include <array>
#include "common/Export.h"
#include "common/Result.h"

浏览源代码.

类

struct  eve::procgen::detail::CircularArcXZ
 Owning derived XZ arc coefficients; not persistent author state. 更多...
 
struct  eve::procgen::detail::CircularArcSampleXZ
 Position and parameter derivative of one arc sample. 更多...
 

命名空间

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

枚举

enum class  eve::procgen::detail::CircularArcReference { eve::procgen::detail::Start , eve::procgen::detail::End }
 Which endpoint tangent determines a circular span's orientation. 更多...
 

函数

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.