NPlot.PageAlignedPhysicalAxis.WorldToPhysical C# (CSharp) Метод

WorldToPhysical() публичный Метод

return the physical coordinate corresponding to the supplied world coordinate.
public WorldToPhysical ( double world ) : float
world double world coordinate to determine physical coordinate for.
Результат float
        public float WorldToPhysical( double world )
        {
            return (float)(((world-worldMin_) / worldLength_) * (float)pLength_ + (float)pMin_);
        }

Usage Example

Пример #1
0
 /// <summary>
 /// Transforms the given world point to physical coordinates
 /// </summary>
 /// <param name="worldPoint">the world point to transform</param>
 /// <returns>the corresponding physical point</returns>
 public PointF Transform(PointD worldPoint)
 {
     return(new PointF(
                xAxis_.WorldToPhysical(worldPoint.X),
                yAxis_.WorldToPhysical(worldPoint.Y)));
 }