NPlot::Transform2D::FastTransform2D Class Reference

This class does highly efficient world->physical and physical->world transforms for linear axes. More...

Inheritance diagram for NPlot::Transform2D::FastTransform2D:

NPlot::ITransform2D List of all members.

Public Member Functions

 FastTransform2D (PhysicalAxis xAxis, PhysicalAxis yAxis)
 Constructor.
PointF Transform (double x, double y)
 Transforms the given world point to physical coordinates.
PointF Transform (PointD worldPoint)
 Transforms the given world point to physical coordinates.

Private Attributes

PageAlignedPhysicalAxis xAxis_
PageAlignedPhysicalAxis yAxis_

Detailed Description

This class does highly efficient world->physical and physical->world transforms for linear axes.

Definition at line 141 of file Transform2D.cs.


Constructor & Destructor Documentation

NPlot::Transform2D::FastTransform2D::FastTransform2D PhysicalAxis  xAxis,
PhysicalAxis  yAxis
[inline]
 

Constructor.

Parameters:
xAxis The x-axis to use for transforms
yAxis The y-axis to use for transforms

Definition at line 153 of file Transform2D.cs.

References NPlot::Transform2D::DefaultTransform2D::xAxis_, and NPlot::Transform2D::DefaultTransform2D::yAxis_.


Member Function Documentation

PointF NPlot::Transform2D::FastTransform2D::Transform PointD  worldPoint  )  [inline]
 

Transforms the given world point to physical coordinates.

Parameters:
worldPoint the world point to transform
Returns:
the corresponding physical point

Implements NPlot::ITransform2D.

Definition at line 179 of file Transform2D.cs.

References NPlot::PhysicalAxis::WorldToPhysical(), NPlot::Transform2D::DefaultTransform2D::xAxis_, and NPlot::Transform2D::DefaultTransform2D::yAxis_.

PointF NPlot::Transform2D::FastTransform2D::Transform double  x,
double  y
[inline]
 

Transforms the given world point to physical coordinates.

Parameters:
x x coordinate of world point to transform.
y y coordinate of world point to transform.
Returns:
the corresponding physical point.

Implements NPlot::ITransform2D.

Definition at line 166 of file Transform2D.cs.

References NPlot::Transform2D::DefaultTransform2D::xAxis_, and NPlot::Transform2D::DefaultTransform2D::yAxis_.


Member Data Documentation

PageAlignedPhysicalAxis NPlot::Transform2D::FastTransform2D::xAxis_ [private]
 

Definition at line 144 of file Transform2D.cs.

PageAlignedPhysicalAxis NPlot::Transform2D::FastTransform2D::yAxis_ [private]
 

Definition at line 145 of file Transform2D.cs.


The documentation for this class was generated from the following file:
Generated on Sat Nov 5 01:04:09 2005 for NPlot by  doxygen 1.4.5