/
BirdLeon
/
ROBLOX2016
Обзор
Документация
Войти
/
BirdLeon
/
ROBLOX2016
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
App/solver/ConstraintJacobian.cpp
36 строк
802 B
PatoFlamejanteTV
full source code
19 дек 2024, 19:11
19 дек 2024, 19:11
05db15d
Код
Авторство
О чём код?
#include "stdafx.h" #include "solver/ConstraintJacobian.h" #include "solver/DebugSerializer.h" namespace RBX { void VirtualDisplacementArray::serialize( DebugSerializer& s ) const { s & data; } void VirtualDisplacementPOD::serialize( DebugSerializer& s ) const { s & lin & ang; } void ConstraintJacobianPair::serialize( DebugSerializer& s ) const { s & a.lin & a.ang & b.lin & b.ang; } static inline void serializeVector3( DebugSerializer& s, const simd::v4f& v ) { s & simd::extractSlow( v, 0 ) & simd::extractSlow( v, 1 ) & simd::extractSlow( v, 2 ); } void EffectiveMassPair::serialize( DebugSerializer& s ) const { serializeVector3( s, a.getLin() ); serializeVector3( s, a.getAng() ); serializeVector3( s, b.getLin() ); serializeVector3( s, b.getAng() ); } }