RoadPoint.Equals C# (CSharp) Method

Equals() public method

public Equals ( object other ) : bool
other object
return 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;
    }