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