public bool Equals(StepTriple other) { if ((object)other == null) { return(false); } return(ItemType == other.ItemType && X == other.X && Y == other.Y && Z == other.Z && Name == other.Name); }
internal static StepTriple AssignTo(StepTriple triple, StepSyntaxList values) { values.AssertListCount(2); triple.Name = values.Values[0].GetStringValue(); var pointValues = values.Values[1].GetValueList(); pointValues.AssertListCount(triple.MinimumValueCount, 3); triple.X = pointValues.GetRealValueOrDefault(0); triple.Y = pointValues.GetRealValueOrDefault(1); triple.Z = pointValues.GetRealValueOrDefault(2); return(triple); }