C# Class NPlot.PageAlignedPhysicalAxis

The bare minimum needed to do world->physical and physical->world transforms for vertical axes. Also includes tick placements. Built for speed.
currently unused
Mostrar archivo Open project: mono/nplot-gtk Class Usage Examples

Public Methods

Method Description
PageAlignedPhysicalAxis ( PhysicalAxis physicalAxis ) : System

Construct from a fully-blown physical axis.

PhysicalToWorld ( float physical ) : double

return the world coordinate corresponding to the supplied physical coordinate.

WorldToPhysical ( double world ) : float

return the physical coordinate corresponding to the supplied world coordinate.

WorldToPhysicalClipped ( double world ) : float

return the physical coordinate corresponding to the supplied world coordinate, clipped if it is outside the bounds of the axis

Method Details

PageAlignedPhysicalAxis() public method

Construct from a fully-blown physical axis.
public PageAlignedPhysicalAxis ( PhysicalAxis physicalAxis ) : System
physicalAxis PhysicalAxis the physical axis to get initial values from.
return System

PhysicalToWorld() public method

return the world coordinate corresponding to the supplied physical coordinate.
public PhysicalToWorld ( float physical ) : double
physical float physical coordinate to determine world coordinate for.
return double

WorldToPhysical() public method

return the physical coordinate corresponding to the supplied world coordinate.
public WorldToPhysical ( double world ) : float
world double world coordinate to determine physical coordinate for.
return float

WorldToPhysicalClipped() public method

return the physical coordinate corresponding to the supplied world coordinate, clipped if it is outside the bounds of the axis
public WorldToPhysicalClipped ( double world ) : float
world double world coordinate to determine physical coordinate for.
return float