C# Class NPlot.Transform2D

This class does highly efficient world->physical and physical->world transforms for linear axes.
ファイルを表示 Open project: GridProtectionAlliance/openHistorian Class Usage Examples

Public Methods

Method Description
InitializeX ( PhysicalAxis physicalAxis ) : void
InitializeY ( PhysicalAxis physicalAxis ) : void
Transform ( PointD worldPoint ) : PointF

Transforms the given world point to physical coordinates

Transform ( double x, double y ) : PointF

Transforms the given world point to physical coordinates

Transform2D ( PhysicalAxis xAxis, PhysicalAxis yAxis ) : System.Drawing

Constructor

WorldToPhysicalY ( double world ) : float

Private Methods

Method Description
WorldToPhysicalX ( double world ) : float

Method Details

InitializeX() public method

public InitializeX ( PhysicalAxis physicalAxis ) : void
physicalAxis PhysicalAxis
return void

InitializeY() public method

public InitializeY ( PhysicalAxis physicalAxis ) : void
physicalAxis PhysicalAxis
return void

Transform() public method

Transforms the given world point to physical coordinates
public Transform ( PointD worldPoint ) : PointF
worldPoint PointD the world point to transform
return System.Drawing.PointF

Transform() public method

Transforms the given world point to physical coordinates
public Transform ( double x, double y ) : PointF
x double x coordinate of world point to transform.
y double y coordinate of world point to transform.
return System.Drawing.PointF

Transform2D() public method

Constructor
public Transform2D ( PhysicalAxis xAxis, PhysicalAxis yAxis ) : System.Drawing
xAxis PhysicalAxis The x-axis to use for transforms
yAxis PhysicalAxis The y-axis to use for transforms
return System.Drawing

WorldToPhysicalY() public method

public WorldToPhysicalY ( double world ) : float
world double
return float