| 263 | } |
| 264 | |
| 265 | static bool CopyFloatArrayToTriQuaternion( void* srcVar, void* dstVar, float scale, const Vector4& offset ) |
| 266 | { |
| 267 | if( ITriQuaternionPtr cp = BlueCastPtr( static_cast<IRoot*>( srcVar ) ) ) |
| 268 | { |
| 269 | Vector4 src = *static_cast<Vector4*>( srcVar ) * scale + offset; |
| 270 | Vector4 dst = *reinterpret_cast<const Vector4*>( cp->GetQuaternion() ); |
| 271 | if( src != dst ) |
| 272 | { |
| 273 | cp->SetXYZW( src.x, src.y, src.z, src.w ); |
| 274 | return true; |
| 275 | } |
| 276 | } |
| 277 | return false; |
| 278 | } |
| 279 | |
| 280 | const Be::VarEntry* TriValueBinding::FindEntry( const char* name, const Be::ClassInfo* type, ssize_t& offs ) |
| 281 | { |
nothing calls this directly
no test coverage detected