/// <summary>Tests if this vertex is equal to the supplied object</summary> /// <param name="obj">The supplied object</param> /// <returns>Trye if they are equal, false otherwise</returns> public override bool Equals(object obj) { if (obj == null) { return(false); } ColoredVertex v = obj as ColoredVertex; if (v == null) { return(false); } if (v.Coordinates.X != Coordinates.X | v.Coordinates.Y != Coordinates.Y | v.Coordinates.Z != Coordinates.Z) { return(false); } if (v.TextureCoordinates.X != TextureCoordinates.X | v.TextureCoordinates.Y != TextureCoordinates.Y) { return(false); } if (v.Color != Color) { return(false); } return(true); }
/// <summary>Clones a colored vertex</summary> public ColoredVertex(ColoredVertex v) { this.Coordinates = v.Coordinates; this.TextureCoordinates = v.TextureCoordinates; this.Color = v.Color; }