All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.gui.QVector4D Maven / Gradle / Ivy

There is a newer version: 6.8.0
Show newest version
package io.qt.gui;

import io.qt.*;


/**
 * 

Represents a vector or vertex in 4D space

*

Java wrapper for Qt class QVector4D

*/ public class QVector4D extends QtObject implements java.lang.Cloneable { static { QtJambi_LibraryUtilities.initialize(); } /** *

See QVector4D::QVector4D()

*/ public QVector4D(){ super((QPrivateConstructor)null); initialize_native(this); } private native static void initialize_native(QVector4D instance); /** *

See QVector4D::QVector4D(QPoint)

*/ public QVector4D(io.qt.core.@NonNull QPoint point){ super((QPrivateConstructor)null); initialize_native(this, point); } private native static void initialize_native(QVector4D instance, io.qt.core.QPoint point); /** *

See QVector4D::QVector4D(QPointF)

*/ public QVector4D(io.qt.core.@NonNull QPointF point){ super((QPrivateConstructor)null); initialize_native(this, point); } private native static void initialize_native(QVector4D instance, io.qt.core.QPointF point); /** *

See QVector4D::QVector4D(QVector2D)

*/ public QVector4D(io.qt.gui.@NonNull QVector2D vector){ super((QPrivateConstructor)null); initialize_native(this, vector); } private native static void initialize_native(QVector4D instance, io.qt.gui.QVector2D vector); /** *

See QVector4D::QVector4D(QVector2D,float,float)

*/ public QVector4D(io.qt.gui.@NonNull QVector2D vector, float zpos, float wpos){ super((QPrivateConstructor)null); initialize_native(this, vector, zpos, wpos); } private native static void initialize_native(QVector4D instance, io.qt.gui.QVector2D vector, float zpos, float wpos); /** *

See QVector4D::QVector4D(QVector3D)

*/ public QVector4D(io.qt.gui.@NonNull QVector3D vector){ super((QPrivateConstructor)null); initialize_native(this, vector); } private native static void initialize_native(QVector4D instance, io.qt.gui.QVector3D vector); /** *

See QVector4D::QVector4D(QVector3D,float)

*/ public QVector4D(io.qt.gui.@NonNull QVector3D vector, float wpos){ super((QPrivateConstructor)null); initialize_native(this, vector, wpos); } private native static void initialize_native(QVector4D instance, io.qt.gui.QVector3D vector, float wpos); /** *

See QVector4D::QVector4D(QVector4D)

*/ public QVector4D(io.qt.gui.@NonNull QVector4D other){ super((QPrivateConstructor)null); initialize_native(this, other); } private native static void initialize_native(QVector4D instance, io.qt.gui.QVector4D other); /** *

See QVector4D::QVector4D(float,float,float,float)

*/ public QVector4D(float xpos, float ypos, float zpos, float wpos){ super((QPrivateConstructor)null); initialize_native(this, xpos, ypos, zpos, wpos); } private native static void initialize_native(QVector4D instance, float xpos, float ypos, float zpos, float wpos); /** *

See QVector4D::isNull()const

*/ @QtUninvokable public final boolean isNull(){ return isNull_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isNull_native_constfct(long __this__nativeId); /** *

See QVector4D::length()const

*/ @QtUninvokable public final float length(){ return length_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native float length_native_constfct(long __this__nativeId); /** *

See QVector4D::lengthSquared()const

*/ @QtUninvokable public final float lengthSquared(){ return lengthSquared_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native float lengthSquared_native_constfct(long __this__nativeId); /** *

See QVector4D::normalize()

*/ @QtUninvokable public final void normalize(){ normalize_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native void normalize_native(long __this__nativeId); /** *

See QVector4D::normalized()const

*/ @QtUninvokable public final io.qt.gui.@NonNull QVector4D normalized(){ return normalized_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QVector4D normalized_native_constfct(long __this__nativeId); /** *

See operator*(QVector4D,QMatrix4x4)

*/ @QtUninvokable public final io.qt.gui.@NonNull QVector4D times(io.qt.gui.@NonNull QMatrix4x4 matrix){ return times_native_cref_QMatrix4x4(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(matrix)); } @QtUninvokable private native io.qt.gui.QVector4D times_native_cref_QMatrix4x4(long __this__nativeId, long matrix); /** *

See operator*(QVector4D,QVector4D)

*/ @QtUninvokable public final io.qt.gui.@NonNull QVector4D times(io.qt.gui.@NonNull QVector4D v2){ return times_native_QVector4D(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(v2)); } @QtUninvokable private native io.qt.gui.QVector4D times_native_QVector4D(long __this__nativeId, long v2); /** *

See operator*(QVector4D,float)

*/ @QtUninvokable public final io.qt.gui.@NonNull QVector4D times(float factor){ return times_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), factor); } @QtUninvokable private native io.qt.gui.QVector4D times_native_float(long __this__nativeId, float factor); /** *

See QVector4D::operator*=(QVector4D)

*/ @QtUninvokable public final @NonNull QVector4D multiply(io.qt.gui.@NonNull QVector4D vector){ return multiply_native_QVector4D(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(vector)); } @QtUninvokable private native QVector4D multiply_native_QVector4D(long __this__nativeId, long vector); /** *

See QVector4D::operator*=(float)

*/ @QtUninvokable public final @NonNull QVector4D multiply(float factor){ return multiply_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), factor); } @QtUninvokable private native QVector4D multiply_native_float(long __this__nativeId, float factor); /** *

See operator+(QVector4D,QVector4D)

*/ @QtUninvokable public final io.qt.gui.@NonNull QVector4D plus(io.qt.gui.@NonNull QVector4D v2){ return plus_native_QVector4D(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(v2)); } @QtUninvokable private native io.qt.gui.QVector4D plus_native_QVector4D(long __this__nativeId, long v2); /** *

See QVector4D::operator+=(QVector4D)

*/ @QtUninvokable public final @NonNull QVector4D add(io.qt.gui.@NonNull QVector4D vector){ return add_native_QVector4D(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(vector)); } @QtUninvokable private native QVector4D add_native_QVector4D(long __this__nativeId, long vector); /** *

See operator-(QVector4D)

*/ @QtUninvokable public final io.qt.gui.@NonNull QVector4D unaryMinus(){ return unaryMinus_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QVector4D unaryMinus_native(long __this__nativeId); /** *

See operator-(QVector4D,QVector4D)

*/ @QtUninvokable public final io.qt.gui.@NonNull QVector4D minus(io.qt.gui.@NonNull QVector4D v2){ return minus_native_QVector4D(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(v2)); } @QtUninvokable private native io.qt.gui.QVector4D minus_native_QVector4D(long __this__nativeId, long v2); /** *

See QVector4D::operator-=(QVector4D)

*/ @QtUninvokable public final @NonNull QVector4D subtract(io.qt.gui.@NonNull QVector4D vector){ return subtract_native_QVector4D(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(vector)); } @QtUninvokable private native QVector4D subtract_native_QVector4D(long __this__nativeId, long vector); /** *

See operator/(QVector4D,QVector4D)

*/ @QtUninvokable public final io.qt.gui.@NonNull QVector4D div(io.qt.gui.@NonNull QVector4D divisor){ return div_native_QVector4D(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(divisor)); } @QtUninvokable private native io.qt.gui.QVector4D div_native_QVector4D(long __this__nativeId, long divisor); /** *

See operator/(QVector4D,float)

*/ @QtUninvokable public final io.qt.gui.@NonNull QVector4D div(float divisor){ return div_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), divisor); } @QtUninvokable private native io.qt.gui.QVector4D div_native_float(long __this__nativeId, float divisor); /** *

See QVector4D::operator/=(QVector4D)

*/ @QtUninvokable public final @NonNull QVector4D divide(io.qt.gui.@NonNull QVector4D vector){ return divide_native_QVector4D(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(vector)); } @QtUninvokable private native QVector4D divide_native_QVector4D(long __this__nativeId, long vector); /** *

See QVector4D::operator/=(float)

*/ @QtUninvokable public final @NonNull QVector4D divide(float divisor){ return divide_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), divisor); } @QtUninvokable private native QVector4D divide_native_float(long __this__nativeId, float divisor); /** *

See operator<<(QDataStream&,QVector4D)

*/ @QtUninvokable public void writeTo(io.qt.core.@StrictNonNull QDataStream arg__1){ java.util.Objects.requireNonNull(arg__1, "Argument 'arg__1': null not expected."); writeTo_native_ref_QDataStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native void writeTo_native_ref_QDataStream(long __this__nativeId, long arg__1); /** *

See operator==(QVector4D,QVector4D)

*/ @QtUninvokable public final boolean equals(io.qt.gui.@NonNull QVector4D v2){ return equals_native_QVector4D(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(v2)); } @QtUninvokable private native boolean equals_native_QVector4D(long __this__nativeId, long v2); /** *

See operator>>(QDataStream&,QVector4D&)

*/ @QtUninvokable public void readFrom(io.qt.core.@StrictNonNull QDataStream arg__1){ java.util.Objects.requireNonNull(arg__1, "Argument 'arg__1': null not expected."); readFrom_native_ref_QDataStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native void readFrom_native_ref_QDataStream(long __this__nativeId, long arg__1); /** *

See QVector4D::operator[](int)const

*/ @QtUninvokable public final float get(int i){ if(i<0 || i>4) throw new IndexOutOfBoundsException(i); return get_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), i); } @QtUninvokable private native float get_native_int_constfct(long __this__nativeId, int i); /** *

See QVector4D::operator[](int)

*/ @QtUninvokable public final void set(int i, float value){ if(i<0 || i>4) throw new IndexOutOfBoundsException(i); set_native_int_float(QtJambi_LibraryUtilities.internal.nativeId(this), i, value); } @QtUninvokable private native void set_native_int_float(long __this__nativeId, int i, float value); /** *

See QVector4D::setW(float)

*/ @QtUninvokable public final void setW(float w){ setW_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), w); } @QtUninvokable private native void setW_native_float(long __this__nativeId, float w); /** *

See QVector4D::setX(float)

*/ @QtUninvokable public final void setX(float x){ setX_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), x); } @QtUninvokable private native void setX_native_float(long __this__nativeId, float x); /** *

See QVector4D::setY(float)

*/ @QtUninvokable public final void setY(float y){ setY_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), y); } @QtUninvokable private native void setY_native_float(long __this__nativeId, float y); /** *

See QVector4D::setZ(float)

*/ @QtUninvokable public final void setZ(float z){ setZ_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), z); } @QtUninvokable private native void setZ_native_float(long __this__nativeId, float z); /** *

See QVector4D::toPoint()const

*/ @QtUninvokable public final io.qt.core.@NonNull QPoint toPoint(){ return toPoint_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QPoint toPoint_native_constfct(long __this__nativeId); /** *

See QVector4D::toPointF()const

*/ @QtUninvokable public final io.qt.core.@NonNull QPointF toPointF(){ return toPointF_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QPointF toPointF_native_constfct(long __this__nativeId); /** *

See QVector4D::toVector2D()const

*/ @QtUninvokable public final io.qt.gui.@NonNull QVector2D toVector2D(){ return toVector2D_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QVector2D toVector2D_native_constfct(long __this__nativeId); /** *

See QVector4D::toVector2DAffine()const

*/ @QtUninvokable public final io.qt.gui.@NonNull QVector2D toVector2DAffine(){ return toVector2DAffine_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QVector2D toVector2DAffine_native_constfct(long __this__nativeId); /** *

See QVector4D::toVector3D()const

*/ @QtUninvokable public final io.qt.gui.@NonNull QVector3D toVector3D(){ return toVector3D_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QVector3D toVector3D_native_constfct(long __this__nativeId); /** *

See QVector4D::toVector3DAffine()const

*/ @QtUninvokable public final io.qt.gui.@NonNull QVector3D toVector3DAffine(){ return toVector3DAffine_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QVector3D toVector3DAffine_native_constfct(long __this__nativeId); /** *

See QVector4D::w()const

*/ @QtUninvokable public final float w(){ return w_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native float w_native_constfct(long __this__nativeId); /** *

See QVector4D::x()const

*/ @QtUninvokable public final float x(){ return x_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native float x_native_constfct(long __this__nativeId); /** *

See QVector4D::y()const

*/ @QtUninvokable public final float y(){ return y_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native float y_native_constfct(long __this__nativeId); /** *

See QVector4D::z()const

*/ @QtUninvokable public final float z(){ return z_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native float z_native_constfct(long __this__nativeId); /** *

See QVector4D::dotProduct(QVector4D,QVector4D)

*/ public static float dotProduct(io.qt.gui.@NonNull QVector4D v1, io.qt.gui.@NonNull QVector4D v2){ return dotProduct_native_QVector4D_QVector4D(QtJambi_LibraryUtilities.internal.checkedNativeId(v1), QtJambi_LibraryUtilities.internal.checkedNativeId(v2)); } private native static float dotProduct_native_QVector4D_QVector4D(long v1, long v2); /** *

See qFuzzyCompare(QVector4D,QVector4D)

*/ public static boolean qFuzzyCompare(io.qt.gui.@NonNull QVector4D v1, io.qt.gui.@NonNull QVector4D v2){ return qFuzzyCompare_native_QVector4D_QVector4D(QtJambi_LibraryUtilities.internal.checkedNativeId(v1), QtJambi_LibraryUtilities.internal.checkedNativeId(v2)); } private native static boolean qFuzzyCompare_native_QVector4D_QVector4D(long v1, long v2); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QVector4D(QPrivateConstructor p) { super(p); } /** *

See operator==(QVector4D,QVector4D)

*/ @Override @QtUninvokable public boolean equals(Object other) { if (other instanceof io.qt.gui.QVector4D) { return equals((io.qt.gui.QVector4D) other); } return false; } /** * Returns the objects's hash code computed by qHash(QVector4D). */ @QtUninvokable @Override public int hashCode() { return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native static int hashCode_native(long __this_nativeId); /** *

See operator<<(QDebug,QVector4D)

*/ @QtUninvokable @Override public @NonNull String toString() { return toString_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private static native String toString_native(long __this_nativeId); /** *

Creates and returns a copy of this object.

See QVector4D::QVector4D(QVector4D)

*/ @QtUninvokable @Override public QVector4D clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private static native QVector4D clone_native(long __this_nativeId); /** *

Overloaded function for {@link #times(io.qt.gui.QMatrix4x4)}.

*/ @QtUninvokable public final io.qt.gui.@NonNull QVector4D times(io.qt.gui.@NonNull QTransform matrix) { return times(new io.qt.gui.QMatrix4x4(matrix)); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy