예제 #1
0
파일: Tile.cs 프로젝트: tebben/i3dm.tooling
        public double[] GetTransform(Vector3 centroid)
        {
            var distance = DistanceCalculator.Distance(centroid, Position);

            // todo: fix scale
            return(LocalSystem.GetLocalTransform(Scale, Heading, distance));
        }
예제 #2
0
        public static double[] GetTransform(Vector3 p, decimal[] scale, double heading)
        {
            //var position = SpatialConvertor.ToSphericalMercatorFromWgs84((double)p.X, (double)p.Y);
            var center    = new Vector3((float)p.X, (float)p.Y, (float)p.Z);
            var transform = LocalSystem.GetLocalTransform(scale, heading, center);

            return(transform);
        }
예제 #3
0
        public double[] GetTransform(Vector3 centroid)
        {
            var distance = DistanceCalculator.Distance(centroid, GetCenter());

            return(LocalSystem.GetLocalTransform(new decimal[] { 1M, 1M, 1M }, 0, distance));
        }