public MapObjectHomeLine(PositionAngle posAngle) : base() { _objPosAngle = PositionAngle.Obj(posAngle.GetObjAddress()); _homePosAngle = PositionAngle.ObjHome(posAngle.GetObjAddress()); LineWidth = 3; LineColor = Color.Black; }
public MapHomeLineObject(uint objAddress) : base() { _objPosAngle = PositionAngle.Obj(objAddress); _homePosAngle = PositionAngle.ObjHome(objAddress); OutlineWidth = 3; OutlineColor = Color.Black; }
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); }
public MapHomeObject(uint objAddress) : base() { _posAngle = PositionAngle.ObjHome(objAddress); }
public MapObjectHome(PositionAngle posAngle) : base() { _posAngle = PositionAngle.ObjHome(posAngle.GetObjAddress()); }