Exemple #1
0
        public MapObjectHomeLine(PositionAngle posAngle)
            : base()
        {
            _objPosAngle  = PositionAngle.Obj(posAngle.GetObjAddress());
            _homePosAngle = PositionAngle.ObjHome(posAngle.GetObjAddress());

            LineWidth = 3;
            LineColor = Color.Black;
        }
Exemple #2
0
        public MapHomeLineObject(uint objAddress)
            : base()
        {
            _objPosAngle  = PositionAngle.Obj(objAddress);
            _homePosAngle = PositionAngle.ObjHome(objAddress);

            OutlineWidth = 3;
            OutlineColor = Color.Black;
        }
Exemple #3
0
        protected override List <Vector3> GetVertices(MapGraphics graphics)
        {
            List <Vector3> vertices = new List <Vector3>();

            foreach (var posAngle in positionAngleProvider())
            {
                var address       = posAngle.GetObjAddress();
                var _objPosAngle  = PositionAngle.Obj(address);
                var _homePosAngle = PositionAngle.ObjHome(address);
                vertices.Add(new Vector3((float)_homePosAngle.X, (float)_homePosAngle.Y, (float)_homePosAngle.Z));
                vertices.Add(new Vector3((float)_objPosAngle.X, (float)_objPosAngle.Y, (float)_objPosAngle.Z));
            }
            return(vertices);
        }
Exemple #4
0
 public MapHomeObject(uint objAddress)
     : base()
 {
     _posAngle = PositionAngle.ObjHome(objAddress);
 }
Exemple #5
0
 public MapObjectHome(PositionAngle posAngle)
     : base()
 {
     _posAngle = PositionAngle.ObjHome(posAngle.GetObjAddress());
 }