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

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

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

Public Member Functions

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

Properties

Func< T, PointCoordinateFunction [get, set]
 The method used to transform the data elements into plot 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 64 of file CoordinateSystems.cs.

Constructor & Destructor Documentation

◆ CoordinateSystem()

VectSharp.Plots.CoordinateSystem< T >.CoordinateSystem ( Func< T, Point coordinateFunction)

Create a new CoordinateSystem<T> using the specified method.

Parameters
coordinateFunctionThe method used to transform the data elements into plot Points.

Definition at line 75 of file CoordinateSystems.cs.

Member Function Documentation

◆ ToPlotCoordinates()

Point VectSharp.Plots.CoordinateSystem< T >.ToPlotCoordinates ( dataPoint)

Transform the specified dataPoint into a plot Point.

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

Implements VectSharp.Plots.ICoordinateSystem< T >.

Definition at line 81 of file CoordinateSystems.cs.

Property Documentation

◆ CoordinateFunction

Func<T, Point> VectSharp.Plots.CoordinateSystem< T >.CoordinateFunction
getset

The method used to transform the data elements into plot Points.

Definition at line 69 of file CoordinateSystems.cs.


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