Vector2Utils.cs 209 B

12345678910111213
  1. using System;
  2. using UnityEngine;
  3. namespace ExtensionMethods
  4. {
  5. public static class Vector2Utils
  6. {
  7. public static float Slope(this Vector2 vector2)
  8. {
  9. return vector2.y / vector2.x;
  10. }
  11. }
  12. }