Math.h 397 B

123456789101112131415
  1. #pragma once
  2. #include <cmath>
  3. #include "Vec2.h"
  4. #include "Vec3.h"
  5. namespace TLAC::Utilities
  6. {
  7. float ToDegrees(float radians);
  8. float ToRadians(float degrees);
  9. Vec2 GetDirection(float degrees);
  10. Vec2 PointFromAngle(float degrees, float distance);
  11. float AngleFromPoints(Vec2 p0, Vec2 p1);
  12. float ConvertRange(float originalStart, float originalEnd, float newStart, float newEnd, float value);
  13. }