/// <summary> /// Creates a new instance of Builder. /// </summary> /// <param name="geometry">The shape of the visual element</param> public Builder(Geometry geometry) { Preconditions.IsNotNull(geometry, "Visual geometry property cannot be set to null"); this.geometry = geometry; }
protected bool Equals(Visual other) { return(Origin.Equals(other.Origin) && Geometry.Equals(other.Geometry) && (Material != null ? Material.Equals(other.Material) : other.Material == null)); }