| 274 | |
| 275 | template<> |
| 276 | void Float3::Unproject(const Float3& vector, float x, float y, float width, float height, float minZ, float maxZ, const Matrix& worldViewProjection, Float3& result) |
| 277 | { |
| 278 | Matrix matrix; |
| 279 | Matrix::Invert(worldViewProjection, matrix); |
| 280 | const Float3 v((vector.X - x) / width * 2.0f - 1.0f, -((vector.Y - y) / height * 2.0f - 1.0f), (vector.Z - minZ) / (maxZ - minZ)); |
| 281 | TransformCoordinate(v, matrix, result); |
| 282 | } |
| 283 | |
| 284 | template<> |
| 285 | void Float3::CreateOrthonormalBasis(Float3& xAxis, Float3& yAxis, Float3& zAxis) |
no test coverage detected