public void Duplicate(VertexCorrection original) { #if ATTRIBUTE_DUPLICATE_DEEP /* MEMO: Deep copy */ for (int i = 0; i < Coordinate.Length; i++) { Coordinate[i] = original.Coordinate[i]; } #else /* MEMO: Shallow copy */ Coordinate = original.Coordinate; #endif }
public override bool Equals(System.Object target) { if ((null == target) || (GetType() != target.GetType())) { return(false); } VertexCorrection targetData = (VertexCorrection)target; int count = Coordinate.Length; if (count != targetData.Coordinate.Length) { return(false); } for (int i = 0; i < count; i++) { if (Coordinate[i] != targetData.Coordinate[i]) { return(false); } } return(true); }