Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qssgplane.cpp
Go to the documentation of this file.
1
// Copyright (C) 2008-2012 NVIDIA Corporation.
2
// Copyright (C) 2019 The Qt Company Ltd.
3
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
4
// Qt-Security score:significant reason:default
5
6
7
#
include
"qssgplane_p.h"
8
9
QT_BEGIN_NAMESPACE
10
11
namespace
{
12
float
magnitude
(
const
QVector3D &vector)
13
{
14
return
std::sqrt(vector.x() * vector.x() + vector.y() * vector.y() + vector.z() * vector.z());
15
}
16
}
17
18
void
QSSGPlane::normalize()
19
{
20
float
denom = 1.0f / magnitude(n);
21
n *= denom;
22
d *= denom;
23
}
24
25
QT_END_NAMESPACE
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qrandomaccessasyncfile_darwin.mm:17
QT_BEGIN_NAMESPACE::magnitude
float magnitude(const QVector3D &vector)
Definition
qssgplane.cpp:12
qtquick3d
src
utils
qssgplane.cpp
Generated on
for Qt by
1.16.1