Qyoto
4.0.7
Qyoto is a C# language binding for Qt
|
The QVector4D class represents a vector or vertex in 4D space. More...
Public Member Functions | |
override bool | Equals (object o) |
override int | GetHashCode () |
QVector4D () | |
More... | |
QVector4D (QPoint point) | |
More... | |
QVector4D (QPointF point) | |
More... | |
QVector4D (QVector2D vector) | |
More... | |
QVector4D (QVector3D vector) | |
More... | |
QVector4D (QVector4D copy) | |
QVector4D (QVector3D vector, double wpos) | |
More... | |
QVector4D (QVector2D vector, double zpos, double wpos) | |
More... | |
QVector4D (double xpos, double ypos, double zpos, double wpos) | |
More... | |
virtual void | CreateProxy () |
new void | Normalize () |
More... | |
new QPoint | ToPoint () |
More... | |
new QPointF | ToPointF () |
More... | |
new QVector2D | ToVector2D () |
More... | |
new QVector2D | ToVector2DAffine () |
More... | |
new QVector3D | ToVector3D () |
More... | |
new QVector3D | ToVector3DAffine () |
More... | |
new void | Dispose () |
Static Public Member Functions | |
static bool | operator!= (QVector4D v1, QVector4D v2) |
More... | |
static QVector4D | operator* (QVector4D v1, QVector4D v2) |
More... | |
static QVector4D | operator* (QVector4D vector, QMatrix4x4 matrix) |
More... | |
static QVector4D | operator* (QVector4D vector, double factor) |
More... | |
static QVector4D | operator+ (QVector4D v1, QVector4D v2) |
More... | |
static QVector4D | operator- (QVector4D vector) |
More... | |
static QVector4D | operator- (QVector4D v1, QVector4D v2) |
More... | |
static QVector4D | operator/ (QVector4D vector, double divisor) |
More... | |
static bool | operator== (QVector4D v1, QVector4D v2) |
More... | |
static double | DotProduct (QVector4D v1, QVector4D v2) |
More... | |
Protected Member Functions | |
QVector4D (System.Type dummy) | |
Protected Attributes | |
SmokeInvocation | interceptor |
Properties | |
double | W [get, set] |
More... | |
double | X [get, set] |
More... | |
double | Y [get, set] |
More... | |
double | Z [get, set] |
More... | |
bool | IsNull [get] |
More... | |
double | Length [get] |
More... | |
double | LengthSquared [get] |
More... | |
QVector4D | Normalized [get] |
More... | |
virtual System.IntPtr | SmokeObject [get, set] |
The QVector4D class represents a vector or vertex in 4D space.
The QVector4D class can also be used to represent vertices in 4D space. We therefore do not need to provide a separate vertex class.
Note: By design values in the QVector4D instance are stored as float. This means that on platforms where the qreal arguments to QVector4D functions are represented by double values, it is possible to lose precision.
See also QQuaternion, QVector2D, and QVector3D.
|
protected |
QtGui.QVector4D.QVector4D | ( | ) |
Constructs a null vector, i.e. with coordinates (0, 0, 0, 0).
QtGui.QVector4D.QVector4D | ( | QPoint | point | ) |
Constructs a vector with x and y coordinates from a 2D point, and z and w coordinates of 0.
QtGui.QVector4D.QVector4D | ( | QPointF | point | ) |
Constructs a vector with x and y coordinates from a 2D point, and z and w coordinates of 0.
QtGui.QVector4D.QVector4D | ( | QVector2D | vector | ) |
Constructs a 4D vector from the specified 2D vector. The z and w coordinates are set to zero.
See also toVector2D().
QtGui.QVector4D.QVector4D | ( | QVector3D | vector | ) |
Constructs a 4D vector from the specified 3D vector. The w coordinate is set to zero.
See also toVector3D().
QtGui.QVector4D.QVector4D | ( | QVector4D | copy | ) |
QtGui.QVector4D.QVector4D | ( | QVector3D | vector, |
double | wpos | ||
) |
Constructs a 4D vector from the specified 3D vector. The w coordinate is set to wpos.
See also toVector3D().
QtGui.QVector4D.QVector4D | ( | QVector2D | vector, |
double | zpos, | ||
double | wpos | ||
) |
Constructs a 4D vector from the specified 2D vector. The z and w coordinates are set to zpos and wpos respectively.
See also toVector2D().
QtGui.QVector4D.QVector4D | ( | double | xpos, |
double | ypos, | ||
double | zpos, | ||
double | wpos | ||
) |
Constructs a vector with coordinates (xpos, ypos, zpos, wpos).
|
virtual |
new void QtGui.QVector4D.Dispose | ( | ) |
Returns the dot product of v1 and v2.
override bool QtGui.QVector4D.Equals | ( | object | o | ) |
override int QtGui.QVector4D.GetHashCode | ( | ) |
new void QtGui.QVector4D.Normalize | ( | ) |
Normalizes the currect vector in place. Nothing happens if this vector is a null vector or the length of the vector is very close to 1.
See also length() and normalized().
Returns true if v1 is not equal to v2; otherwise returns false. This operator uses an exact floating-point comparison.
Returns the vector consisting of the multiplication of the components from v1 and v2.
See also QVector4D::operator*=().
|
static |
Returns the result of transforming vector according to matrix, with the matrix applied post-vector.
Returns a copy of the given vector, multiplied by the given factor.
See also QVector4D::operator*=().
Returns a QVector4D object that is the sum of the given vectors, v1 and v2; each component is added separately.
See also QVector4D::operator+=().
This is an overloaded function.
Returns a QVector4D object that is formed by changing the sign of all three components of the given vector.
Equivalent to QVector4D(0,0,0,0) - vector.
Returns a QVector4D object that is formed by subtracting v2 from v1; each component is subtracted separately.
See also QVector4D::operator-=().
Returns the QVector4D object formed by dividing all four components of the given vector by the given divisor.
See also QVector4D::operator/=().
Returns true if v1 is equal to v2; otherwise returns false. This operator uses an exact floating-point comparison.
new QPoint QtGui.QVector4D.ToPoint | ( | ) |
Returns the QPoint form of this 4D vector. The z and w coordinates are dropped.
See also toPointF() and toVector2D().
new QPointF QtGui.QVector4D.ToPointF | ( | ) |
Returns the QPointF form of this 4D vector. The z and w coordinates are dropped.
See also toPoint() and toVector2D().
new QVector2D QtGui.QVector4D.ToVector2D | ( | ) |
Returns the 2D vector form of this 4D vector, dropping the z and w coordinates.
See also toVector2DAffine(), toVector3D(), and toPoint().
new QVector2D QtGui.QVector4D.ToVector2DAffine | ( | ) |
Returns the 2D vector form of this 4D vector, dividing the x and y coordinates by the w coordinate and dropping the z coordinate. Returns a null vector if w is zero.
See also toVector2D(), toVector3DAffine(), and toPoint().
new QVector3D QtGui.QVector4D.ToVector3D | ( | ) |
Returns the 3D vector form of this 4D vector, dropping the w coordinate.
See also toVector3DAffine(), toVector2D(), and toPoint().
new QVector3D QtGui.QVector4D.ToVector3DAffine | ( | ) |
Returns the 3D vector form of this 4D vector, dividing the x, y, and z coordinates by the w coordinate. Returns a null vector if w is zero.
See also toVector3D(), toVector2DAffine(), and toPoint().
|
protected |
|
get |
Returns true if the x, y, z, and w coordinates are set to 0.0, otherwise returns false.
|
get |
Returns the length of the vector from the origin.
See also lengthSquared() and normalized().
|
get |
Returns the squared length of the vector from the origin. This is equivalent to the dot product of the vector with itself.
See also length() and dotProduct().
|
get |
Returns the normalized unit vector form of this vector.
If this vector is null, then a null vector is returned. If the length of the vector is very close to 1, then the vector will be returned as-is. Otherwise the normalized form of the vector of length 1 will be returned.
See also length() and normalize().
|
getset |
|
getset |
Returns the w coordinate of this point.
Sets the w coordinate of this point to the given w coordinate.
|
getset |
Returns the x coordinate of this point.
Sets the x coordinate of this point to the given x coordinate.
|
getset |
Returns the y coordinate of this point.
Sets the y coordinate of this point to the given y coordinate.
|
getset |
Returns the z coordinate of this point.
Sets the z coordinate of this point to the given z coordinate.