载入中...
搜索中...
未找到
MotionTypes.h
浏览该文件的文档.
259[[nodiscard]] EVENGINE_API_WORLD float evaluateMotionOscillation(float t, int frequency, float dampingRatio);
265[[nodiscard]] EVENGINE_API_WORLD float evaluateMotionShakeSign(std::uint32_t seed, int frequency, float t, int axis);
Move-only, checked operation results for the common layer.
Sink that writes into borrowed RGBA float pointers. @ownership Does not own the pointers; caller must...
Definition MotionTypes.h:216
ColorPointerSink(float *r, float *g, float *b, float *a)
Color pointer sink.
Definition MotionTypes.h:219
Sink that writes into buffer[index] (batch-friendly contiguous target). @ownership Does not own buffe...
Definition MotionTypes.h:163
Sink that writes into a borrowed float*. @ownership Does not own target; caller must keep it alive wh...
Definition MotionTypes.h:147
virtual eve::Result< void > write(MotionColor value)=0
Writes .
static constexpr const char * capabilityName
Definition MotionTypes.h:122
virtual ~IMotionColorSink()=default
Releases IMotionColorSink resources.
Push target for a float motion. Lifetime is borrowed by MotionRuntime.
Definition MotionTypes.h:84
virtual ~IMotionFloatSink()=default
Releases IMotionFloatSink resources.
static constexpr const char * capabilityName
Definition MotionTypes.h:86
virtual eve::Result< void > write(float value)=0
Write the latest interpolated value.
virtual ~IMotionQuatSink()=default
Releases IMotionQuatSink resources.
static constexpr const char * capabilityName
Definition MotionTypes.h:134
virtual ~IMotionVec2Sink()=default
Releases IMotionVec2Sink resources.
static constexpr const char * capabilityName
Definition MotionTypes.h:98
virtual ~IMotionVec3Sink()=default
Releases IMotionVec3Sink resources.
static constexpr const char * capabilityName
Definition MotionTypes.h:110
Sink that writes into borrowed quaternion xyzw float pointers. @ownership Does not own the pointers; ...
Definition MotionTypes.h:235
QuatPointerSink(float *x, float *y, float *z, float *w)
Quat pointer sink.
Definition MotionTypes.h:238
Property tween — interpolates named float properties from → to over time.
Definition Tween.h:25
Sink that writes into borrowed float x/y pointers. @ownership Does not own the pointers; caller must ...
Definition MotionTypes.h:181
Sink that writes into borrowed float x/y/z pointers. @ownership Does not own the pointers; caller mus...
Definition MotionTypes.h:198
Vec3PointerSink(float *x, float *y, float *z)
Constructs a Vec3PointerSink.
Definition MotionTypes.h:201
Definition Animation.cpp:58
MotionQuat slerpMotionQuat(MotionQuat a, MotionQuat b, float t)
Spherical linear interpolation for MotionQuat (shortest path).
Definition MotionTypes.cpp:209
float evaluateMotionOscillation(float t, int frequency, float dampingRatio)
LitMotion-style damped sine envelope in [0,1] progress.
Definition MotionTypes.cpp:177
MotionColor lerpMotionColor(MotionColor a, MotionColor b, float t)
Component-wise lerp for MotionColor.
Definition MotionTypes.cpp:204
float evaluateMotionShakeSign(std::uint32_t seed, int frequency, float t, int axis)
Deterministic shake sign in [-1,1] for axis (0..n).
Definition MotionTypes.cpp:186
float evaluateMotionEase(float t, const char *kind)
Evaluate an ease curve; kinds match Math.ease / Tween.
Definition MotionTypes.cpp:63
Generation-checked slot identity for a live motion.
Definition MotionTypes.h:20
constexpr bool operator==(const MotionHandle &other) const noexcept
Operator ==.
Definition MotionTypes.h:28
constexpr bool operator!=(const MotionHandle &other) const noexcept
Operator !=.
Definition MotionTypes.h:33
Compact quaternion used by motion adapters (xyzw).
Definition MotionTypes.h:60
Compact float2 used by motion adapters (avoids graphics math deps).
Definition MotionTypes.h:39