private static TransformIntPoint ( IntPoint &point, Matrix matrix ) : void | ||
point | IntPoint | |
matrix | Matrix | Matrix. |
return | void |
private static void TransformIntPoint(ref IntPoint point, Matrix matrix)
{
var transform = matrix.transform;
var x = point.X / scale;
var y = point.Y / scale;
point.X = (long)((transform.xx * x + transform.xy * y + transform.x0) * scale);
point.Y = (long)((transform.yx * x + transform.yy * y + transform.y0) * scale);
}