io.qt.gui.QVector4D Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.gui;
/**
* Represents a vector or vertex in 4D space
* Java wrapper for Qt class QVector4D
*/
public class QVector4D extends io.qt.QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
*
*/
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.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.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.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.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.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.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(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);
/**
*
*/
@io.qt.QtUninvokable
public final boolean isNull(){
return isNull_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isNull_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final float length(){
return length_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native float length_native_constfct(long __this__nativeId);
/**
* See QVector4D::lengthSquared()const
*/
@io.qt.QtUninvokable
public final float lengthSquared(){
return lengthSquared_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native float lengthSquared_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final void normalize(){
normalize_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native void normalize_native(long __this__nativeId);
/**
* See QVector4D::normalized()const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QVector4D normalized(){
return normalized_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QVector4D normalized_native_constfct(long __this__nativeId);
/**
* See QVector4D::operator*=(QVector4D)
*/
@io.qt.QtUninvokable
public final io.qt.gui.QVector4D multiply(io.qt.gui.QVector4D vector){
multiply_native_QVector4D(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(vector));
return this;
}
@io.qt.QtUninvokable
private native io.qt.gui.QVector4D multiply_native_QVector4D(long __this__nativeId, long vector);
/**
* See QVector4D::operator*=(float)
*/
@io.qt.QtUninvokable
public final io.qt.gui.QVector4D multiply(float factor){
multiply_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), factor);
return this;
}
@io.qt.QtUninvokable
private native io.qt.gui.QVector4D multiply_native_float(long __this__nativeId, float factor);
/**
* See QVector4D::operator+=(QVector4D)
*/
@io.qt.QtUninvokable
public final io.qt.gui.QVector4D add(io.qt.gui.QVector4D vector){
add_native_QVector4D(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(vector));
return this;
}
@io.qt.QtUninvokable
private native io.qt.gui.QVector4D add_native_QVector4D(long __this__nativeId, long vector);
/**
* See QVector4D::operator-=(QVector4D)
*/
@io.qt.QtUninvokable
public final io.qt.gui.QVector4D subtract(io.qt.gui.QVector4D vector){
subtract_native_QVector4D(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(vector));
return this;
}
@io.qt.QtUninvokable
private native io.qt.gui.QVector4D subtract_native_QVector4D(long __this__nativeId, long vector);
/**
* See QVector4D::operator/=(QVector4D)
*/
@io.qt.QtUninvokable
public final io.qt.gui.QVector4D divide(io.qt.gui.QVector4D vector){
divide_native_QVector4D(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(vector));
return this;
}
@io.qt.QtUninvokable
private native io.qt.gui.QVector4D divide_native_QVector4D(long __this__nativeId, long vector);
/**
* See QVector4D::operator/=(float)
*/
@io.qt.QtUninvokable
public final io.qt.gui.QVector4D divide(float divisor){
divide_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), divisor);
return this;
}
@io.qt.QtUninvokable
private native io.qt.gui.QVector4D divide_native_float(long __this__nativeId, float divisor);
@io.qt.QtUninvokable
public void writeTo(io.qt.core.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));
}
@io.qt.QtUninvokable
private native void writeTo_native_ref_QDataStream(long __this__nativeId, long arg__1);
@io.qt.QtUninvokable
private final boolean operator_equal(io.qt.gui.QVector4D v2){
return operator_equal_native_QVector4D(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(v2));
}
@io.qt.QtUninvokable
private native boolean operator_equal_native_QVector4D(long __this__nativeId, long v2);
@io.qt.QtUninvokable
public void readFrom(io.qt.core.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));
}
@io.qt.QtUninvokable
private native void readFrom_native_ref_QDataStream(long __this__nativeId, long arg__1);
/**
*
*/
@io.qt.QtUninvokable
public final void setW(float w){
setW_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), w);
}
@io.qt.QtUninvokable
private native void setW_native_float(long __this__nativeId, float w);
/**
*
*/
@io.qt.QtUninvokable
public final void setX(float x){
setX_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), x);
}
@io.qt.QtUninvokable
private native void setX_native_float(long __this__nativeId, float x);
/**
*
*/
@io.qt.QtUninvokable
public final void setY(float y){
setY_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), y);
}
@io.qt.QtUninvokable
private native void setY_native_float(long __this__nativeId, float y);
/**
*
*/
@io.qt.QtUninvokable
public final void setZ(float z){
setZ_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), z);
}
@io.qt.QtUninvokable
private native void setZ_native_float(long __this__nativeId, float z);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QPoint toPoint(){
return toPoint_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QPoint toPoint_native_constfct(long __this__nativeId);
/**
* See QVector4D::toPointF()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QPointF toPointF(){
return toPointF_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QPointF toPointF_native_constfct(long __this__nativeId);
/**
* See QVector4D::toVector2D()const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QVector2D toVector2D(){
return toVector2D_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QVector2D toVector2D_native_constfct(long __this__nativeId);
/**
* See QVector4D::toVector2DAffine()const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QVector2D toVector2DAffine(){
return toVector2DAffine_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QVector2D toVector2DAffine_native_constfct(long __this__nativeId);
/**
* See QVector4D::toVector3D()const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QVector3D toVector3D(){
return toVector3D_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QVector3D toVector3D_native_constfct(long __this__nativeId);
/**
* See QVector4D::toVector3DAffine()const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QVector3D toVector3DAffine(){
return toVector3DAffine_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QVector3D toVector3DAffine_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final float w(){
return w_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native float w_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final float x(){
return x_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native float x_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final float y(){
return y_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native float y_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final float z(){
return z_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native float z_native_constfct(long __this__nativeId);
/**
* See QVector4D::dotProduct(QVector4D,QVector4D)
*/
public static float dotProduct(io.qt.gui.QVector4D v1, io.qt.gui.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);
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QVector4D(QPrivateConstructor p) { super(p); }
@Override
@io.qt.QtUninvokable
public boolean equals(Object other) {
if (other instanceof io.qt.gui.QVector4D) {
return operator_equal((io.qt.gui.QVector4D) other);
}
return false;
}
@io.qt.QtUninvokable
@Override
public int hashCode() {
return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native static int hashCode_native(long __this_nativeId);
@Override
@io.qt.QtUninvokable
public String toString() {
return toString_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private static native String toString_native(long __this_nativeId);
@Override
public QVector4D clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native QVector4D clone_native(long __this_nativeId);
}