| 150 | } |
| 151 | |
| 152 | static bool CopyTriVectorToVector3( void* srcVar, void* dstVar, float scale, const Vector4& offset ) |
| 153 | { |
| 154 | ITriVectorPtr vp; |
| 155 | if( static_cast<IRoot*>( srcVar )->QueryInterface( BlueInterfaceIID<ITriVector>(), (void**)&vp, BEQI_SILENT ) ) |
| 156 | { |
| 157 | Vector3 src; |
| 158 | vp->CopyVector( &src ); |
| 159 | src = src * scale + offset.GetXYZ(); |
| 160 | auto& dst = *static_cast<Vector3*>( dstVar ); |
| 161 | if( src != dst ) |
| 162 | { |
| 163 | dst = src; |
| 164 | return true; |
| 165 | } |
| 166 | } |
| 167 | return false; |
| 168 | } |
| 169 | |
| 170 | static bool CopyTriVectorToVector2( void* srcVar, void* dstVar, float scale, const Vector4& offset ) |
| 171 | { |
nothing calls this directly
no test coverage detected