载入中...
搜索中...
未找到
MotionSchemaInternal.h
浏览该文件的文档.
25inline std::array<float, 3> schemaRotate(const std::array<float, 3>& p, const TransformTRS& q, bool inverse = false) {
34inline std::array<float, 3> schemaDifference(const TransformTRS& a, const TransformTRS& b, const TransformTRS& root) {
39inline void schemaEncode(std::span<float> output, const MotionFeatureChannel& channel, std::array<float, 3> value, float lengthScale) {
41 const float divisor = std::max(.01f, std::sqrt(value[0]*value[0] + value[1]*value[1] + value[2]*value[2]));
43 } else if (channel.kind == MotionFeatureKind::Position || channel.kind == MotionFeatureKind::Velocity)
48inline std::array<float, 3> schemaHeading(const TransformTRS& bone, const TransformTRS& root, int axis) {
Definition AnimationTime.h:10
std::array< float, 3 > schemaDifference(const TransformTRS &a, const TransformTRS &b, const TransformTRS &root)
Definition MotionSchemaInternal.h:34
TransformTRS mulTRS(const TransformTRS &parent, const TransformTRS &local)
Mul trs.
Definition AnimTransformInternal.h:8
std::array< float, 3 > schemaHeading(const TransformTRS &bone, const TransformTRS &root, int axis)
Definition MotionSchemaInternal.h:48
std::array< float, 3 > schemaRotate(const std::array< float, 3 > &p, const TransformTRS &q, bool inverse=false)
Definition MotionSchemaInternal.h:25
void schemaEncode(std::span< float > output, const MotionFeatureChannel &channel, std::array< float, 3 > value, float lengthScale)
Schema encode.
Definition MotionSchemaInternal.h:39
Definition Animation.cpp:58
Owning configuration for one ordered motion feature channel.
Definition MotionFeatureLayout.h:25
bool normalizeVelocity
Definition MotionFeatureLayout.h:35
Owning ordered feature layout; copied atomically by a database.
Definition MotionFeatureLayout.h:46
Local TRS used by skeletal animation (quaternion xyzw).
Definition AnimMath.h:9
MotionSchemaState public API.
Definition MotionSchemaInternal.h:13
MotionFeatureLayout layout
Definition MotionSchemaInternal.h:14
std::vector< MotionFeatureSource > sources
Definition MotionSchemaInternal.h:17
std::vector< MotionFeatureQuery > queries
Definition MotionSchemaInternal.h:19
int dimension
Definition MotionSchemaInternal.h:21
std::vector< int > offsets
Definition MotionSchemaInternal.h:15
std::array< float, 3 > weightSums
Definition MotionSchemaInternal.h:20
std::unique_ptr< AnimCurveLibrary > curves
Definition MotionSchemaInternal.h:22
std::map< const AnimClip *, std::string > curveSources
Definition MotionSchemaInternal.h:23
std::vector< MotionFeatureKind > kinds
Definition MotionSchemaInternal.h:18
std::vector< float > weights
Definition MotionSchemaInternal.h:16