| 257 | |
| 258 | template<> |
| 259 | Float3 Float3::Project(const Float3& vector, const Float3& onNormal) |
| 260 | { |
| 261 | const float sqrMag = Dot(onNormal, onNormal); |
| 262 | if (sqrMag < ZeroTolerance) |
| 263 | return Zero; |
| 264 | return onNormal * Dot(vector, onNormal) / sqrMag; |
| 265 | } |
| 266 | |
| 267 | template<> |
| 268 | void Float3::Project(const Float3& vector, float x, float y, float width, float height, float minZ, float maxZ, const Matrix& worldViewProjection, Float3& result) |
no test coverage detected