public void UpdateMaxAndMin(MapPosition position) { if (position == null) { return; } if (Max == null || Min == null) { Max = new MapPosition(position.X, position.Y); Min = new MapPosition(position.X, position.Y); } else { if (position.X > Max.X) { Max.X = position.X; } else if (position.X < Min.X) { Min.X = position.X; } if (position.Y > Max.Y) { Max.Y = position.Y; } else if (position.Y < Min.Y) { Min.Y = position.Y; } } }
public BarocdeLineMap(string id, int start_Number, MapPosition start_Position, int end_Number, MapPosition end_Position, EnumAGVPositionType type) { ID = id; Start_Number = start_Number; Start_Position = start_Position; End_Number = end_Number; End_Position = end_Position; Type = type; }
public LocateAGVPosition(MapPosition position, double theta, double value, double scanTime, DateTime getDataTime, uint count, EnumAGVPositionType type, string device, int oreder) { AGVPosition = new MapAGVPosition(position, theta); Value = value; ScanTime = scanTime; GetDataTime = getDataTime; Count = count; Type = type; Device = device; Order = oreder; }
public MapAGVPosition(MapPosition position, double theta) { Position = position; Angle = theta; }
public MapAGVPosition(MapAGVPosition old) { Angle = old.Angle; Position = new MapPosition(old.Position.X, old.Position.Y); }
public BarcodeData(int id, double x, double y) { ID = id; ViewPosition = new MapPosition((float)x, (float)y); }