Category5.Victim.getDistanceFromTornado C# (CSharp) Метод

getDistanceFromTornado() защищенный Метод

Calculates the distance to the center of the tornado used to compare with the radius to determine where you should place yourself
protected getDistanceFromTornado ( ) : float
Результат float
        protected float getDistanceFromTornado()
        {
            return (tornado.Position - new Vector2(this.bounds.Center.X, this.bounds.Center.Y)).Length();
        }