DataToView3D



Convert x- and y-coordinates from global to chart space where chart space client area is defined by its size in view_size argument and represented ranges in xrange and yrange arguments. The result is returned directly as 3D vector with third(z) coordinate is set to zero which could be more convinient in some calculation.

math::TVec3<float> DataToView3D(const PointF &p, const PointF &xrange, const PointF &yrange, const PointF &view_size);
Namespace: nitisa::charts
Include: Charts/Core/Utils.h