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
QSSGRenderCamera::ClipPlanes Class Reference

#include <qssgrendercamera_p.h>

Inheritance diagram for QSSGRenderCamera::ClipPlanes:
Collaboration diagram for QSSGRenderCamera::ClipPlanes:

Public Member Functions

constexpr ClipPlanes ()
constexpr ClipPlanes (float n, float f)
constexpr float clipNear () const noexcept
constexpr float clipFar () const noexcept
constexpr void setClipNear (float n) noexcept
constexpr void setClipFar (float f) noexcept
Public Member Functions inherited from QVector2D
constexpr QVector2D () noexcept
 Constructs a null vector, i.e.
 QVector2D (Qt::Initialization) noexcept
constexpr QVector2D (float xpos, float ypos) noexcept
 Constructs a vector with coordinates (xpos, ypos).
constexpr QVector2D (QPoint point) noexcept
 Constructs a vector with x and y coordinates from a 2D point.
constexpr QVector2D (QPointF point) noexcept
 Constructs a vector with x and y coordinates from a 2D point.
constexpr QVector2D (QVector3D vector) noexcept
 Constructs a vector with x and y coordinates from a 3D vector.
constexpr QVector2D (QVector4D vector) noexcept
 Constructs a vector with x and y coordinates from a 3D vector.
constexpr bool isNull () const noexcept
 Returns true if the x and y coordinates are set to 0.0, otherwise returns false.
constexpr float x () const noexcept
 Returns the x coordinate of this point.
constexpr float y () const noexcept
 Returns the y coordinate of this point.
constexpr void setX (float x) noexcept
 Sets the x coordinate of this point to the given finite x coordinate.
constexpr void setY (float y) noexcept
 Sets the y coordinate of this point to the given finite y coordinate.
constexpr float & operator[] (int i)
constexpr float operator[] (int i) const
float length () const noexcept
 Returns the length of the vector from the origin.
constexpr float lengthSquared () const noexcept
 Returns the squared length of the vector from the origin.
QVector2D normalized () const noexcept
 Returns the normalized unit vector form of this vector.
void normalize () noexcept
 Normalizes the current vector in place.
float distanceToPoint (QVector2D point) const noexcept
float distanceToLine (QVector2D point, QVector2D direction) const noexcept
constexpr QVector2Doperator+= (QVector2D vector) noexcept
 Adds the given vector to this vector and returns a reference to this vector.
constexpr QVector2Doperator-= (QVector2D vector) noexcept
 Subtracts the given vector from this vector and returns a reference to this vector.
constexpr QVector2Doperator*= (float factor) noexcept
 Multiplies this vector's coordinates by the given finite factor and returns a reference to this vector.
constexpr QVector2Doperator*= (QVector2D vector) noexcept
 Multiplies each component of this vector by the corresponding component of vector and returns a reference to this vector.
constexpr QVector2Doperator/= (float divisor)
 Divides this vector's coordinates by the given divisor and returns a reference to this vector.
constexpr QVector2Doperator/= (QVector2D vector)
constexpr QVector3D toVector3D () const noexcept
 Returns the 3D form of this 2D vector, with the z coordinate set to zero.
constexpr QVector4D toVector4D () const noexcept
 Returns the 4D form of this 2D vector, with the z and w coordinates set to zero.
constexpr QPoint toPoint () const noexcept
 Returns the QPoint form of this 2D vector.
constexpr QPointF toPointF () const noexcept
 Returns the QPointF form of this 2D vector.
Q_GUI_EXPORT operator QVariant () const
 Returns the 2D vector as a QVariant.

Additional Inherited Members

Static Public Member Functions inherited from QVector2D
static constexpr float dotProduct (QVector2D v1, QVector2D v2) noexcept
 Returns the dot product of v1 and v2.

Detailed Description

Definition at line 128 of file qssgrendercamera_p.h.

Constructor & Destructor Documentation

◆ ClipPlanes() [1/2]

QSSGRenderCamera::ClipPlanes::ClipPlanes ( )
inlineconstexpr

Definition at line 131 of file qssgrendercamera_p.h.

◆ ClipPlanes() [2/2]

QSSGRenderCamera::ClipPlanes::ClipPlanes ( float n,
float f )
inlineconstexpr

Definition at line 132 of file qssgrendercamera_p.h.

Member Function Documentation

◆ clipFar()

float QSSGRenderCamera::ClipPlanes::clipFar ( ) const
inlineconstexprnoexcept

Definition at line 134 of file qssgrendercamera_p.h.

◆ clipNear()

float QSSGRenderCamera::ClipPlanes::clipNear ( ) const
inlineconstexprnoexcept

Definition at line 133 of file qssgrendercamera_p.h.

◆ setClipFar()

void QSSGRenderCamera::ClipPlanes::setClipFar ( float f)
inlineconstexprnoexcept

Definition at line 137 of file qssgrendercamera_p.h.

◆ setClipNear()

void QSSGRenderCamera::ClipPlanes::setClipNear ( float n)
inlineconstexprnoexcept

Definition at line 136 of file qssgrendercamera_p.h.


The documentation for this class was generated from the following file: