Пример #1
0
        /// <summary>
        /// 実際のワールド座標
        /// </summary>
        /// <param name="this"></param>
        /// <param name="worldCenter"></param>
        /// <param name="worldScale"></param>
        /// <returns></returns>
        public static Vector3 WorldPostiton(this NodeDataModel @this, Vector2 worldCenter, Vector2 worldScale)
        {
            PositionModel positionModel = @this.Position;
            var           position      = new Vector3(
                (positionModel.EastLon - worldCenter.x) * worldScale.x,
                0,
                (positionModel.NorthLat - worldCenter.y) * worldScale.y
                );

            return(position);
        }
Пример #2
0
 public NodeDataModel(string id, PositionModel position, InfoListModel infoList)
 {
     this.id       = id;
     this.position = position;
     this.infoList = infoList;
 }