class ThreeDViewer.Utils.PointFExtension

Overview

Class that contains all the extensions for the PointF class. More…

class PointFExtension
{
public:
    // methods

    static PointF MapToPixel(
        this PointF point,
        Size mathematicalSize,
        Size imageSize
        );

    static IList<PointF> MapToPixel(
        this IList<PointF> points,
        Size mathematicalSize,
        Size imageSize
        );
};

Detailed Documentation

Class that contains all the extensions for the PointF class.

Methods

static PointF MapToPixel(
    this PointF point,
    Size mathematicalSize,
    Size imageSize
    )

Maps the point from it’s mathematical size to pixels on the screen.

Parameters:

point

Point to map.

mathematicalSize

Size of the mathematical space that will be projected.

imageSize

Size of the image that the point will be projected on.

Returns:

The mapped point.

static IList<PointF> MapToPixel(
    this IList<PointF> points,
    Size mathematicalSize,
    Size imageSize
    )

Maps the list of points from their mathematical size to pixels on the screen.

Parameters:

points

Points to map.

mathematicalSize

Size of the mathematical space that will be projected.

imageSize

Size of the image that the point will be projected on.

Returns:

The mapped points.