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

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

The newest version!
package io.qt.gui;


/**
 * 

Represents a quaternion consisting of a vector and scalar

*

Java wrapper for Qt class QQuaternion

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

See QQuaternion::QQuaternion()

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

See QQuaternion::QQuaternion(QVector4D)

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

See QQuaternion::QQuaternion(float,QVector3D)

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

See QQuaternion::QQuaternion(float,float,float,float)

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

See QQuaternion::conjugated()const

*/ @io.qt.QtUninvokable public final io.qt.gui.QQuaternion conjugated(){ return conjugated_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.gui.QQuaternion conjugated_native_constfct(long __this__nativeId); /** *

See QQuaternion::getAxes(QVector3D*,QVector3D*,QVector3D*)const

*/ @io.qt.QtUninvokable public final io.qt.gui.QQuaternion.Axes getAxes(){ return getAxes_native_QVector3D_ptr_QVector3D_ptr_QVector3D_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.gui.QQuaternion.Axes getAxes_native_QVector3D_ptr_QVector3D_ptr_QVector3D_ptr_constfct(long __this__nativeId); /** *

See QQuaternion::getAxisAndAngle(QVector3D*,float*)const

*/ @io.qt.QtUninvokable public final io.qt.gui.QQuaternion.AxisAndAngle getAxisAndAngle(){ return getAxisAndAngle_native_QVector3D_ptr_float_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.gui.QQuaternion.AxisAndAngle getAxisAndAngle_native_QVector3D_ptr_float_ptr_constfct(long __this__nativeId); /** *

See QQuaternion::getEulerAngles(float*,float*,float*)const

*/ @io.qt.QtUninvokable public final io.qt.gui.QQuaternion.EulerAngles getEulerAngles(){ return getEulerAngles_native_float_ptr_float_ptr_float_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.gui.QQuaternion.EulerAngles getEulerAngles_native_float_ptr_float_ptr_float_ptr_constfct(long __this__nativeId); /** *

See QQuaternion::inverted()const

*/ @io.qt.QtUninvokable public final io.qt.gui.QQuaternion inverted(){ return inverted_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.gui.QQuaternion inverted_native_constfct(long __this__nativeId); /** *

See QQuaternion::isIdentity()const

*/ @io.qt.QtUninvokable public final boolean isIdentity(){ return isIdentity_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean isIdentity_native_constfct(long __this__nativeId); /** *

See QQuaternion::isNull()const

*/ @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); /** *

See QQuaternion::length()const

*/ @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 QQuaternion::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); /** *

See QQuaternion::normalize()

*/ @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 QQuaternion::normalized()const

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

See QQuaternion::operator*=(QQuaternion)

*/ @io.qt.QtUninvokable public final io.qt.gui.QQuaternion multiply(io.qt.gui.QQuaternion quaternion){ multiply_native_cref_QQuaternion(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(quaternion)); return this; } @io.qt.QtUninvokable private native io.qt.gui.QQuaternion multiply_native_cref_QQuaternion(long __this__nativeId, long quaternion); /** *

See QQuaternion::operator*=(float)

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

See QQuaternion::operator+=(QQuaternion)

*/ @io.qt.QtUninvokable public final io.qt.gui.QQuaternion add(io.qt.gui.QQuaternion quaternion){ add_native_cref_QQuaternion(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(quaternion)); return this; } @io.qt.QtUninvokable private native io.qt.gui.QQuaternion add_native_cref_QQuaternion(long __this__nativeId, long quaternion); /** *

See QQuaternion::operator-=(QQuaternion)

*/ @io.qt.QtUninvokable public final io.qt.gui.QQuaternion subtract(io.qt.gui.QQuaternion quaternion){ subtract_native_cref_QQuaternion(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(quaternion)); return this; } @io.qt.QtUninvokable private native io.qt.gui.QQuaternion subtract_native_cref_QQuaternion(long __this__nativeId, long quaternion); /** *

See QQuaternion::operator/=(float)

*/ @io.qt.QtUninvokable public final io.qt.gui.QQuaternion divide(float divisor){ divide_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), divisor); return this; } @io.qt.QtUninvokable private native io.qt.gui.QQuaternion 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.QQuaternion q2){ return operator_equal_native_cref_QQuaternion(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(q2)); } @io.qt.QtUninvokable private native boolean operator_equal_native_cref_QQuaternion(long __this__nativeId, long q2); @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); /** *

See QQuaternion::rotatedVector(QVector3D)const

*/ @io.qt.QtUninvokable public final io.qt.gui.QVector3D rotatedVector(io.qt.gui.QVector3D vector){ return rotatedVector_native_cref_QVector3D_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(vector)); } @io.qt.QtUninvokable private native io.qt.gui.QVector3D rotatedVector_native_cref_QVector3D_constfct(long __this__nativeId, long vector); /** *

See QQuaternion::scalar()const

*/ @io.qt.QtUninvokable public final float scalar(){ return scalar_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native float scalar_native_constfct(long __this__nativeId); /** *

See QQuaternion::setScalar(float)

*/ @io.qt.QtUninvokable public final void setScalar(float scalar){ setScalar_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), scalar); } @io.qt.QtUninvokable private native void setScalar_native_float(long __this__nativeId, float scalar); /** *

See QQuaternion::setVector(QVector3D)

*/ @io.qt.QtUninvokable public final void setVector(io.qt.gui.QVector3D vector){ setVector_native_cref_QVector3D(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(vector)); } @io.qt.QtUninvokable private native void setVector_native_cref_QVector3D(long __this__nativeId, long vector); /** *

See QQuaternion::setVector(float,float,float)

*/ @io.qt.QtUninvokable public final void setVector(float x, float y, float z){ setVector_native_float_float_float(QtJambi_LibraryUtilities.internal.nativeId(this), x, y, z); } @io.qt.QtUninvokable private native void setVector_native_float_float_float(long __this__nativeId, float x, float y, float z); /** *

See QQuaternion::setX(float)

*/ @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); /** *

See QQuaternion::setY(float)

*/ @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); /** *

See QQuaternion::setZ(float)

*/ @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); /** *

See QQuaternion::toEulerAngles()const

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

See QQuaternion::toRotationMatrix()const

*/ @io.qt.QtUninvokable public final io.qt.gui.QMatrix3x3 toRotationMatrix(){ return toRotationMatrix_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.gui.QMatrix3x3 toRotationMatrix_native_constfct(long __this__nativeId); /** *

See QQuaternion::toVector4D()const

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

See QQuaternion::vector()const

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

See QQuaternion::x()const

*/ @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); /** *

See QQuaternion::y()const

*/ @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); /** *

See QQuaternion::z()const

*/ @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 QQuaternion::dotProduct(QQuaternion,QQuaternion)

*/ public static float dotProduct(io.qt.gui.QQuaternion q1, io.qt.gui.QQuaternion q2){ return dotProduct_native_cref_QQuaternion_cref_QQuaternion(QtJambi_LibraryUtilities.internal.checkedNativeId(q1), QtJambi_LibraryUtilities.internal.checkedNativeId(q2)); } private native static float dotProduct_native_cref_QQuaternion_cref_QQuaternion(long q1, long q2); /** *

See QQuaternion::fromAxes(QVector3D,QVector3D,QVector3D)

*/ public static io.qt.gui.QQuaternion fromAxes(io.qt.gui.QVector3D xAxis, io.qt.gui.QVector3D yAxis, io.qt.gui.QVector3D zAxis){ return fromAxes_native_cref_QVector3D_cref_QVector3D_cref_QVector3D(QtJambi_LibraryUtilities.internal.checkedNativeId(xAxis), QtJambi_LibraryUtilities.internal.checkedNativeId(yAxis), QtJambi_LibraryUtilities.internal.checkedNativeId(zAxis)); } private native static io.qt.gui.QQuaternion fromAxes_native_cref_QVector3D_cref_QVector3D_cref_QVector3D(long xAxis, long yAxis, long zAxis); /** *

See QQuaternion::fromAxisAndAngle(QVector3D,float)

*/ public static io.qt.gui.QQuaternion fromAxisAndAngle(io.qt.gui.QVector3D axis, float angle){ return fromAxisAndAngle_native_cref_QVector3D_float(QtJambi_LibraryUtilities.internal.checkedNativeId(axis), angle); } private native static io.qt.gui.QQuaternion fromAxisAndAngle_native_cref_QVector3D_float(long axis, float angle); /** *

See QQuaternion::fromAxisAndAngle(float,float,float,float)

*/ public native static io.qt.gui.QQuaternion fromAxisAndAngle(float x, float y, float z, float angle); /** *

See QQuaternion::fromDirection(QVector3D,QVector3D)

*/ public static io.qt.gui.QQuaternion fromDirection(io.qt.gui.QVector3D direction, io.qt.gui.QVector3D up){ return fromDirection_native_cref_QVector3D_cref_QVector3D(QtJambi_LibraryUtilities.internal.checkedNativeId(direction), QtJambi_LibraryUtilities.internal.checkedNativeId(up)); } private native static io.qt.gui.QQuaternion fromDirection_native_cref_QVector3D_cref_QVector3D(long direction, long up); /** *

See QQuaternion::fromEulerAngles(QVector3D)

*/ public static io.qt.gui.QQuaternion fromEulerAngles(io.qt.gui.QVector3D eulerAngles){ return fromEulerAngles_native_cref_QVector3D(QtJambi_LibraryUtilities.internal.checkedNativeId(eulerAngles)); } private native static io.qt.gui.QQuaternion fromEulerAngles_native_cref_QVector3D(long eulerAngles); /** *

See QQuaternion::fromEulerAngles(float,float,float)

*/ public native static io.qt.gui.QQuaternion fromEulerAngles(float pitch, float yaw, float roll); /** *

See QQuaternion::fromRotationMatrix(QMatrix3x3)

*/ public static io.qt.gui.QQuaternion fromRotationMatrix(io.qt.gui.QMatrix3x3 rot3x3){ return fromRotationMatrix_native_cref_QMatrix3x3(QtJambi_LibraryUtilities.internal.checkedNativeId(rot3x3)); } private native static io.qt.gui.QQuaternion fromRotationMatrix_native_cref_QMatrix3x3(long rot3x3); /** *

See QQuaternion::nlerp(QQuaternion,QQuaternion,float)

*/ public static io.qt.gui.QQuaternion nlerp(io.qt.gui.QQuaternion q1, io.qt.gui.QQuaternion q2, float t){ return nlerp_native_cref_QQuaternion_cref_QQuaternion_float(QtJambi_LibraryUtilities.internal.checkedNativeId(q1), QtJambi_LibraryUtilities.internal.checkedNativeId(q2), t); } private native static io.qt.gui.QQuaternion nlerp_native_cref_QQuaternion_cref_QQuaternion_float(long q1, long q2, float t); /** *

See QQuaternion::rotationTo(QVector3D,QVector3D)

*/ public static io.qt.gui.QQuaternion rotationTo(io.qt.gui.QVector3D from, io.qt.gui.QVector3D to){ return rotationTo_native_cref_QVector3D_cref_QVector3D(QtJambi_LibraryUtilities.internal.checkedNativeId(from), QtJambi_LibraryUtilities.internal.checkedNativeId(to)); } private native static io.qt.gui.QQuaternion rotationTo_native_cref_QVector3D_cref_QVector3D(long from, long to); /** *

See QQuaternion::slerp(QQuaternion,QQuaternion,float)

*/ public static io.qt.gui.QQuaternion slerp(io.qt.gui.QQuaternion q1, io.qt.gui.QQuaternion q2, float t){ return slerp_native_cref_QQuaternion_cref_QQuaternion_float(QtJambi_LibraryUtilities.internal.checkedNativeId(q1), QtJambi_LibraryUtilities.internal.checkedNativeId(q2), t); } private native static io.qt.gui.QQuaternion slerp_native_cref_QQuaternion_cref_QQuaternion_float(long q1, long q2, float t); /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected QQuaternion(QPrivateConstructor p) { super(p); } @Override @io.qt.QtUninvokable public boolean equals(Object other) { if (other instanceof io.qt.gui.QQuaternion) { return operator_equal((io.qt.gui.QQuaternion) 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); public static class Axes{ private Axes(QVector3D xAxis, QVector3D yAxis, QVector3D zAxis) { super(); this.xAxis = xAxis; this.yAxis = yAxis; this.zAxis = zAxis; } public final QVector3D xAxis; public final QVector3D yAxis; public final QVector3D zAxis; } public static class AxisAndAngle{ private AxisAndAngle(QVector3D axis, float angle) { super(); this.axis = axis; this.angle = angle; } public final QVector3D axis; public final float angle; } public static class EulerAngles{ private EulerAngles(float pitch, float yaw, float roll) { super(); this.pitch = pitch; this.yaw = yaw; this.roll = roll; } public final float pitch; public final float yaw; public final float roll; } @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 QQuaternion clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native QQuaternion clone_native(long __this_nativeId); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy