Category5.Victim.getDistanceFromTornado C# (CSharp) Méthode

getDistanceFromTornado() protected méthode

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
Résultat float
        protected float getDistanceFromTornado()
        {
            return (tornado.Position - new Vector2(this.bounds.Center.X, this.bounds.Center.Y)).Length();
        }