public override bool Equals(object obj) { if ((obj == null) || GetType() != obj.GetType()) { return(false); } TripleInt tripleInt = (TripleInt)obj; return((X == tripleInt.X) && (Y == tripleInt.Y) && (Z == tripleInt.Z)); }
public MachineState() { UnitsAreMM = false; Minimum = new TripleDouble(); Maximum = new TripleDouble(); StepperPosition = new TripleInt(); TargetStepperPosition = new TripleInt(); CurrentStepperDelay = new TripleInt(); StepperIncrement = new TripleDouble { X = 0.0125, Y = 0.0125, Z = 0.0250 }; }