Nez.Portable/Math/Mathf.cs
/// <summary>
/// helper for moving a value around in a circle.
/// </summary>
helper for moving a value around in a circle.
helper for moving a value around in a circle .
[MethodImpl(MethodImplOptions.AggressiveInlining)]
        static public Vector2 rotateAround(Vector2 position, float speed)
        {
            var time = Time.time * speed;
            var x = cos(time);
            var y = sin(time);
            return new Vector2(position.X + x, position.Y + y);
        }
[ MethodImpl ( MethodImplOptions . AggressiveInlining ) ] static public Vector2 rotateAround ( Vector2 position , float speed ) { var time = Time . time * speed ; var x = cos ( time ) ; var y = sin ( time ) ; return new Vector2 ( position . X + x , position . Y + y ) ; }
helper for moving a value around in a circle.
helper for moving a value around in a circle .
position
Vector2
speed
float