UNPKG

@minecraft/creator-tools

Version:

Minecraft Creator Tools command line and libraries.

26 lines (25 loc) 581 B
"use strict"; // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. Object.defineProperty(exports, "__esModule", { value: true }); class Rotation { _yaw; _pitch; get yaw() { return this._yaw; } set yaw(newYaw) { this._yaw = newYaw; } get pitch() { return this._pitch; } set pitch(newPitch) { this._pitch = newPitch; } constructor(yaw, pitch) { this._yaw = yaw === undefined ? 0 : yaw; this._pitch = pitch === undefined ? 0 : pitch; } } exports.default = Rotation;