"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Vector3_1 = require("./Vector3");
/** The transformation of an object consists of a position and 3 rotations in radians */
var Transformation = /** @class */ (function () {
    function Transformation(position, rotation) {
        this.position = position;
        this.rotation = rotation;
    }
    //#region Create / Init
    /** Convenience function for creating a Transformation, cloning the parameters, rotation must be radinas already */
    Transformation.create = function (position, rotation) {
        return {
            position: Vector3_1.Vector3.clone(position),
            rotation: Vector3_1.Vector3.clone(rotation),
        };
    };
    //#endregion Create / Init
    //#region Clone / Copy
    /** Convenience function for cloning a Transformation */
    Transformation.clone = function (transformation) {
        return Transformation.create(transformation.position, transformation.rotation);
    };
    return Transformation;
}());
exports.Transformation = Transformation;
