C

Qt Cluster: Rendering and Recovery from Main UI Failure

// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

// This file is part of the Qt Safe Renderer module

.pragma library

function toPixels(percentage, outerRadius) {
    return percentage * outerRadius;
}

var convertToRad = Math.PI / 180;
function degToRad(degrees) {
    return degrees * convertToRad;
}

var convertToDeg = 180 / Math.PI;
function radToDeg(radians) {
    return radians * convertToDeg;
}