VectSharp 2.6.1
A light library for C# vector graphics
All Classes Namespaces Functions Variables Enumerations Properties Events Pages
VectSharp.Plots.CoordinateSystem1D< T > Class Template Reference

A coordinate system using a custom method to transform data points. More...

Inheritance diagram for VectSharp.Plots.CoordinateSystem1D< T >:

Public Member Functions

 CoordinateSystem1D (Func< T, double > coordinateFunction)
 Creates a new CoordinateSystem1D<T> using the specified coordinateFunction . More...
 
double ToPlotCoordinates (T dataPoint)
 Transform the specified dataPoint into a double.
Parameters
dataPointThe data point whose coordinates should be determined.
Returns
A double representing the dataPoint in plot space.
More...
 
double ToPlotCoordinates (T dataPoint)
 Transform the specified dataPoint into a double. More...
 

Properties

Func< T, double > CoordinateFunction [get, set]
 The method used to transform data points. More...
 

Detailed Description

A coordinate system using a custom method to transform data points.

Template Parameters
TThe type of data elements.

Definition at line 1056 of file CoordinateSystems.cs.

Constructor & Destructor Documentation

◆ CoordinateSystem1D()

VectSharp.Plots.CoordinateSystem1D< T >.CoordinateSystem1D ( Func< T, double >  coordinateFunction)

Creates a new CoordinateSystem1D<T> using the specified coordinateFunction .

Parameters
coordinateFunctionThe method used to transform data points.

Definition at line 1067 of file CoordinateSystems.cs.

Member Function Documentation

◆ ToPlotCoordinates()

double VectSharp.Plots.CoordinateSystem1D< T >.ToPlotCoordinates ( dataPoint)

Transform the specified dataPoint into a double.

Parameters
dataPointThe data point whose coordinates should be determined.
Returns
A double representing the dataPoint in plot space.

Implements VectSharp.Plots.ICoordinateSystem1D< T >.

Definition at line 1073 of file CoordinateSystems.cs.

Property Documentation

◆ CoordinateFunction

Func<T, double> VectSharp.Plots.CoordinateSystem1D< T >.CoordinateFunction
getset

The method used to transform data points.

Definition at line 1061 of file CoordinateSystems.cs.


The documentation for this class was generated from the following file: