public bool Equals(CachedVertex other) { if (!vertex.Equals(other.vertex)) { return(false); } if (!normal.Equals(other.normal)) { return(false); } if (!color.Equals(other.color)) { return(false); } if (uv == null && other.uv != null) { return(false); } if (other.uv == null) { return(false); } if (!uv.Equals(other.uv)) { return(false); } return(true); }
public bool Equals(VertexData other) { return(Position.Equals(other.Position) && Normal.Equals(other.Normal) && Color == other.Color && (UV == null ? other.UV == null : UV.Equals(other.UV))); }