using System.Drawing; using System; using System.Collections.Generic; namespace AGVControl.Models { public class RFIDLine { public Point StartPoint { get; set; } public Point EndPoint { get; set; } public float Distance { get { float dx = StartPoint.X - EndPoint.X; float dy = StartPoint.Y - EndPoint.Y; return (float)Math.Sqrt(dx * dx + dy * dy); // double을 float로 명시적 캐스팅 } } //public uint StartRFID { get; set; } //public uint EndRFID { get; set; } //public bool IsBidirectional { get; set; } = true; // 양방향 이동 가능 여부 //public float Distance { get; set; } // 두 RFID 포인트 사이의 거리 //public List ConnectedRFIDs { get; set; } = new List(); // 연결된 모든 RFID 값들 //public Dictionary NextRFID { get; set; } = new Dictionary(); // 각 RFID의 다음 RFID //public Dictionary PrevRFID { get; set; } = new Dictionary(); // 각 RFID의 이전 RFID } }