Sphere Class

(Qt3D::Sphere)
Inherits:

Public Functions

Sphere(const QNodeId & i = QNodeId())
Sphere(const QVector3D & c, float r, const QNodeId & i = QNodeId())
QVector3D center() const
void clear()
void expandToContain(const QVector3D & point)
void expandToContain(const QVector<QVector3D> & points)
void expandToContain(const Sphere & sphere)
QNodeId id() const
void initializeFromPoints(const QVector<QVector3D> & points)
bool intersects(const QRay3D & ray, QVector3D * q) const
bool isNull()
float radius() const
void setCenter(const QVector3D & c)
void setRadius(float r)
Sphere & transform(const QMatrix4x4 & mat)
Sphere transformed(const QMatrix4x4 & mat)
Type type() const

Static Public Members

Sphere fromPoints(const QVector<QVector3D> & points)

Member Function Documentation

Sphere::Sphere(const QNodeId & i = QNodeId())

Sphere::Sphere(const QVector3D & c, float r, const QNodeId & i = QNodeId())

QVector3D Sphere::center() const

See also setCenter().

void Sphere::clear()

void Sphere::expandToContain(const QVector3D & point)

void Sphere::expandToContain(const QVector<QVector3D> & points)

void Sphere::expandToContain(const Sphere & sphere)

[static] Sphere Sphere::fromPoints(const QVector<QVector3D> & points)

QNodeId Sphere::id() const

void Sphere::initializeFromPoints(const QVector<QVector3D> & points)

bool Sphere::intersects(const QRay3D & ray, QVector3D * q) const

bool Sphere::isNull()

float Sphere::radius() const

See also setRadius().

void Sphere::setCenter(const QVector3D & c)

See also center().

void Sphere::setRadius(float r)

See also radius().

Sphere & Sphere::transform(const QMatrix4x4 & mat)

Sphere Sphere::transformed(const QMatrix4x4 & mat)

Type Sphere::type() const

© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.