libetonyek::transformations Namespace Reference

Special transformation constructors. More...

Functions

KEYTransformation center (double width, double height)
 Translate to the center of viewport. More...
 
KEYTransformation origin (double width, double height)
 Translate from the center of viewport to the origin. More...
 
KEYTransformation flip (bool horizontal, bool vertical)
 Flip horizontally and/or vertically. More...
 
KEYTransformation rotate (double angle)
 Rotate counterclockwise around origin. More...
 
KEYTransformation scale (double ratioX, double ratioY)
 Scale along x and/or y axis. More...
 
KEYTransformation shear (double angleX, double angleY)
 Shear along x and/or y axis. More...
 
KEYTransformation translate (double offsetX, double offsetY)
 Translate along x and/or y axis. More...
 

Detailed Description

Special transformation constructors.

Function Documentation

KEYTransformation libetonyek::transformations::center ( double  width,
double  height 
)

Translate to the center of viewport.

  • [in] width width of the viewport.
  • [in] height height of the viewport.
    Returns
    the transformation

Referenced by libetonyek::makeTransformation().

KEYTransformation libetonyek::transformations::flip ( bool  horizontal,
bool  vertical 
)

Flip horizontally and/or vertically.

  • [in] horizontal flip horizontally.
  • [in] vertical flip vertically.
    Returns
    the transformation

Referenced by libetonyek::makeArrowPath(), libetonyek::makeDoubleArrowPath(), and libetonyek::makeTransformation().

KEYTransformation libetonyek::transformations::origin ( double  width,
double  height 
)

Translate from the center of viewport to the origin.

This is inverse operation to center().

  • [in] width width of the viewport.
  • [in] height height of the viewport.
    Returns
    the transformation

Referenced by libetonyek::makeTransformation().

KEYTransformation libetonyek::transformations::rotate ( double  angle)

Rotate counterclockwise around origin.

  • [in] angle rotation angle in radians. 0 is at the x axis on the right side.
    Returns
    the transformation

Referenced by libetonyek::makeStarPath(), and libetonyek::makeTransformation().

KEYTransformation libetonyek::transformations::scale ( double  ratioX,
double  ratioY 
)

Scale along x and/or y axis.

  • [in] ratioX scale ratio along x axis.
  • [in] ratioY scale ratio along y axis.
    Returns
    the transformation

Referenced by flip().

KEYTransformation libetonyek::transformations::shear ( double  angleX,
double  angleY 
)

Shear along x and/or y axis.

  • [in] angleX shear angle along x axis.
  • [in] angleY shear angle along y axis.
    Returns
    the transformation

Referenced by libetonyek::makeTransformation().

KEYTransformation libetonyek::transformations::translate ( double  offsetX,
double  offsetY 
)

Translate along x and/or y axis.

  • [in] offsetX translation offset along x axis.
  • [in] offsetY translation offset along y axis.
    Returns
    the transformation

Referenced by center(), libetonyek::makeArrowPath(), libetonyek::makeDoubleArrowPath(), libetonyek::makePolygonPath(), libetonyek::makeStarPath(), libetonyek::makeTransformation(), and origin().


Generated for libetonyek by doxygen 1.8.5