Ejemplo n.º 1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="point"></param>
 /// <param name="from"></param>
 /// <param name="to"></param>
 /// <returns></returns>
 public static Vec3d Remap(Vec3d point, Domain3d from, Domain3d to)
 {
     point.X = Domain1d.Remap(point.X, from.X, to.X);
     point.Y = Domain1d.Remap(point.Y, from.Y, to.Y);
     point.Y = Domain1d.Remap(point.Z, from.Z, to.Z);
     return(point);
 }
Ejemplo n.º 2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="point"></param>
 /// <param name="from"></param>
 /// <param name="to"></param>
 /// <returns></returns>
 public static Vec2d Remap(Vec2d point, Domain2d from, Domain2d to)
 {
     point.X = Domain1d.Remap(point.X, from.X, to.X);
     point.Y = Domain1d.Remap(point.Y, from.Y, to.Y);
     return(point);
 }