improved tests

This commit is contained in:
2026-02-19 07:47:23 +03:00
parent 800082e4b3
commit e935155022
12 changed files with 438 additions and 11 deletions

View File

@@ -10,8 +10,8 @@ namespace omath::cry_engine
{
const auto direction = (look_at - cam_origin).normalized();
return {PitchAngle::from_radians(-std::asin(direction.z)),
YawAngle::from_radians(std::atan2(direction.y, direction.x)), RollAngle::from_radians(0.f)};
return {PitchAngle::from_radians(std::asin(direction.z)),
YawAngle::from_radians(-std::atan2(direction.x, direction.y)), RollAngle::from_radians(0.f)};
}
Mat4X4 CameraTrait::calc_view_matrix(const ViewAngles& angles, const Vector3<float>& cam_origin) noexcept
{