QRay3D Class


Public Functions

QRay3D(const QVector3D & origin, const QVector3D & direction = QVector3D( 0.0f, 0.0f, 1.0f ))
bool contains(const QVector3D & point) const
bool contains(const QRay3D & ray) const
QVector3D direction() const
float distance(const QVector3D & point) const
QVector3D origin() const
QVector3D point(float t) const
QVector3D project(const QVector3D & vector) const
float projectedDistance(const QVector3D & point) const
void setDirection(const QVector3D & value)
void setOrigin(const QVector3D & value)
QRay3D & transform(const QMatrix4x4 & matrix)
QRay3D transformed(const QMatrix4x4 & matrix) const
bool operator!=(const QRay3D & other) const
bool operator==(const QRay3D & other) const

Member Function Documentation


QRay3D::QRay3D(const QVector3D & origin, const QVector3D & direction = QVector3D( 0.0f, 0.0f, 1.0f ))


bool QRay3D::contains(const QVector3D & point) const

bool QRay3D::contains(const QRay3D & ray) const

QVector3D QRay3D::direction() const

See also setDirection().

float QRay3D::distance(const QVector3D & point) const

QVector3D QRay3D::origin() const

See also setOrigin().

QVector3D QRay3D::point(float t) const

QVector3D QRay3D::project(const QVector3D & vector) const

float QRay3D::projectedDistance(const QVector3D & point) const

void QRay3D::setDirection(const QVector3D & value)

See also direction().

void QRay3D::setOrigin(const QVector3D & value)

See also origin().

QRay3D & QRay3D::transform(const QMatrix4x4 & matrix)

QRay3D QRay3D::transformed(const QMatrix4x4 & matrix) const

bool QRay3D::operator!=(const QRay3D & other) const

bool QRay3D::operator==(const QRay3D & other) 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.