diff options
author | Sean Harmer <sean.harmer@kdab.com> | 2015-10-12 20:45:19 +0100 |
---|---|---|
committer | Paul Lemire <paul.lemire@kdab.com> | 2015-10-13 13:19:50 +0000 |
commit | 7c971e0e7791ab38d7d3d8ebc25468c44cbe49c5 (patch) | |
tree | 53197a9e5eb7501d6f5b497f70c25dad9c265a6f /src/render/frontend/sphere.cpp | |
parent | 0bfd20ad3b8eb3edec8d6317af9eb5504f8c0871 (diff) |
Move Qt3DCore into Qt3DCore namespace
Update other aspects, tests and examples accordingly.
Change-Id: Ib1bcf0bdf4f5aec4422dc0c80bfc32b27fb1a317
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/render/frontend/sphere.cpp')
-rw-r--r-- | src/render/frontend/sphere.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/render/frontend/sphere.cpp b/src/render/frontend/sphere.cpp index a8b9cd6de..7cdfafeec 100644 --- a/src/render/frontend/sphere.cpp +++ b/src/render/frontend/sphere.cpp @@ -50,7 +50,7 @@ namespace { // Intersects ray r = p + td, |d| = 1, with sphere s and, if intersecting, // returns true and intersection point q; false otherwise -bool intersectRaySphere(const Qt3D::QRay3D &ray, const Qt3DRender::Sphere &s, QVector3D *q = Q_NULLPTR) +bool intersectRaySphere(const Qt3DCore::QRay3D &ray, const Qt3DRender::Sphere &s, QVector3D *q = Q_NULLPTR) { const QVector3D p = ray.origin(); const QVector3D d = ray.direction(); @@ -211,17 +211,17 @@ Sphere Sphere::transformed(const QMatrix4x4 &mat) return Sphere(c, sqrt(rSquared)); } -Qt3D::QNodeId Sphere::id() const +Qt3DCore::QNodeId Sphere::id() const { return m_id; } -bool Sphere::intersects(const Qt3D::QRay3D &ray, QVector3D *q) const +bool Sphere::intersects(const Qt3DCore::QRay3D &ray, QVector3D *q) const { return intersectRaySphere(ray, *this, q); } -Qt3D::QBoundingVolume::Type Sphere::type() const +Qt3DCore::QBoundingVolume::Type Sphere::type() const { return QBoundingVolume::Sphere; } |