<commit_before>﻿//BSD, 2014-present, WinterDev
 
namespace PixelFarm.CpuBlit.VertexProcessing
{
    public enum AffineMatrixCommand : byte
    {
        None,
        Scale,
        Skew,
        Rotate,
        Translate,
        Invert
    }

    public struct AffinePlan
    {
        public readonly AffineMatrixCommand cmd;
        public readonly double x;
        public readonly double y;
        public AffinePlan(AffineMatrixCommand cmd, double x, double y)
        {
            this.x = x;
            this.y = y;
            this.cmd = cmd;
        }
        public AffinePlan(AffineMatrixCommand cmd, double x)
        {
            this.x = x;
            this.y = 0;
            this.cmd = cmd;
        }


        //----------------------------------------------------------------------------
        public static AffinePlan Translate(double x, double y)
        {
            return new AffinePlan(AffineMatrixCommand.Translate, x, y);
        }
        public static AffinePlan Rotate(double radAngle)
        {
            return new AffinePlan(AffineMatrixCommand.Rotate, radAngle);
        }
        public static AffinePlan Skew(double x, double y)
        {
            return new AffinePlan(AffineMatrixCommand.Skew, x, y);
        }
        public static AffinePlan Scale(double x, double y)
        {
            return new AffinePlan(AffineMatrixCommand.Scale, x, y);<commit_msg>1073: RotateDeg()<commit_after>﻿//BSD, 2014-present, WinterDev

namespace PixelFarm.CpuBlit.VertexProcessing
{
    public enum AffineMatrixCommand : byte
    {
        None,
        Scale,
        Skew,
        Rotate,
        Translate,
        Invert
    }

    public struct AffinePlan
    {
        public readonly AffineMatrixCommand cmd;
        public readonly double x;
        public readonly double y;
        public AffinePlan(AffineMatrixCommand cmd, double x, double y)
        {
            this.x = x;
            this.y = y;
            this.cmd = cmd;
        }
        public AffinePlan(AffineMatrixCommand cmd, double x)
        {
            this.x = x;
            this.y = 0;
            this.cmd = cmd;
        }


        //----------------------------------------------------------------------------
        public static AffinePlan Translate(double x, double y)
        {
            return new AffinePlan(AffineMatrixCommand.Translate, x, y);
        }
        public static AffinePlan Rotate(double radAngle)
        {
            return new AffinePlan(AffineMatrixCommand.Rotate, radAngle);
        }
        public static AffinePlan RotateDeg(double degree)
        {
            return new AffinePlan(AffineMatrixCommand.Rotate, AggMath.deg2rad(degree));
        }
        public static AffinePlan Skew(double x, double y)
        {
            return new AffinePlan(AffineMatrixCommand.Skew, x, y);
        }
        public static AffinePlan Scale(double x, double y)
        {
            return new AffinePlan(AffineMatrixCommand.Scale, x, y);
{'fraction_non_alphanumeric': 0.1202680067001675, 'fraction_numerical': 0.005025125628140704, 'mean_word_length': 1.4883333333333333, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4549294', 'n_tokens_mistral': 828, 'n_tokens_neox': 795, 'n_words': 207}