C# Class NPlot.Transform2D

This class does highly efficient world->physical and physical->world transforms for linear axes.
Afficher le fichier Open project: GridProtectionAlliance/openHistorian Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
WorldToPhysicalX ( double world ) : float

Method Details

InitializeX() public méthode

public InitializeX ( PhysicalAxis physicalAxis ) : void
physicalAxis PhysicalAxis
Résultat void

InitializeY() public méthode

public InitializeY ( PhysicalAxis physicalAxis ) : void
physicalAxis PhysicalAxis
Résultat void

Transform() public méthode

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

Transform() public méthode

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.
Résultat System.Drawing.PointF

Transform2D() public méthode

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
Résultat System.Drawing

WorldToPhysicalY() public méthode

public WorldToPhysicalY ( double world ) : float
world double
Résultat float