// Returns cosinus of angle to v, value in radians public double CosinusTo(Vector2 v) { return (X * v.X + Y * v.Y) / (Length() * v.Length()); }
// Returns sinus of angle to v, value in radians public double SinusTo(Vector2 v) { return (X * v.Y - Y * v.X) / (Length() * v.Length()); }
// Returns value in radians public double AngleTo(Vector2 v) { return (double)Math.Asin((X * v.Y - Y * v.X) / (Length() * v.Length())); }