RoadPoint.Equals C# (CSharp) Méthode

Equals() public méthode

public Equals ( object other ) : bool
other object
Résultat bool
    public override bool Equals(object other)
    {
        //just check distance, ignore segment
        if (Vector2.Distance ((other as RoadPoint).point, this.point) < 0.01f)
            return true;

        return false;
    }