Exemple #1
0
        public double[] GetTransform(Vector3 centroid)
        {
            var distance = DistanceCalculator.Distance(centroid, Position);

            // todo: fix scale
            return(LocalSystem.GetLocalTransform(Scale, Heading, distance));
        }
Exemple #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);
        }
Exemple #3
0
        public double[] GetTransform(Vector3 centroid)
        {
            var distance = DistanceCalculator.Distance(centroid, GetCenter());

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