io.qt.gui.QVector3D Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.gui;
/**
* Represents a vector or vertex in 3D space
* Java wrapper for Qt class QVector3D
*/
public class QVector3D extends io.qt.QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
*
*/
public QVector3D(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QVector3D instance);
/**
* See QVector3D::QVector3D(QPoint)
*/
public QVector3D(io.qt.core.QPoint point){
super((QPrivateConstructor)null);
initialize_native(this, point);
}
private native static void initialize_native(QVector3D instance, io.qt.core.QPoint point);
/**
* See QVector3D::QVector3D(QPointF)
*/
public QVector3D(io.qt.core.QPointF point){
super((QPrivateConstructor)null);
initialize_native(this, point);
}
private native static void initialize_native(QVector3D instance, io.qt.core.QPointF point);
/**
* See QVector3D::QVector3D(QVector2D)
*/
public QVector3D(io.qt.gui.QVector2D vector){
super((QPrivateConstructor)null);
initialize_native(this, vector);
}
private native static void initialize_native(QVector3D instance, io.qt.gui.QVector2D vector);
/**
* See QVector3D::QVector3D(QVector2D,float)
*/
public QVector3D(io.qt.gui.QVector2D vector, float zpos){
super((QPrivateConstructor)null);
initialize_native(this, vector, zpos);
}
private native static void initialize_native(QVector3D instance, io.qt.gui.QVector2D vector, float zpos);
/**
* See QVector3D::QVector3D(QVector4D)
*/
public QVector3D(io.qt.gui.QVector4D vector){
super((QPrivateConstructor)null);
initialize_native(this, vector);
}
private native static void initialize_native(QVector3D instance, io.qt.gui.QVector4D vector);
/**
* See QVector3D::QVector3D(float,float,float)
*/
public QVector3D(float xpos, float ypos, float zpos){
super((QPrivateConstructor)null);
initialize_native(this, xpos, ypos, zpos);
}
private native static void initialize_native(QVector3D instance, float xpos, float ypos, float zpos);
/**
* See QVector3D::distanceToLine(QVector3D,QVector3D)const
*/
@io.qt.QtUninvokable
public final float distanceToLine(io.qt.gui.QVector3D point, io.qt.gui.QVector3D direction){
return distanceToLine_native_QVector3D_QVector3D_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(point), QtJambi_LibraryUtilities.internal.checkedNativeId(direction));
}
@io.qt.QtUninvokable
private native float distanceToLine_native_QVector3D_QVector3D_constfct(long __this__nativeId, long point, long direction);
/**
* See QVector3D::distanceToPlane(QVector3D,QVector3D)const
*/
@io.qt.QtUninvokable
public final float distanceToPlane(io.qt.gui.QVector3D plane, io.qt.gui.QVector3D normal){
return distanceToPlane_native_QVector3D_QVector3D_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(plane), QtJambi_LibraryUtilities.internal.checkedNativeId(normal));
}
@io.qt.QtUninvokable
private native float distanceToPlane_native_QVector3D_QVector3D_constfct(long __this__nativeId, long plane, long normal);
/**
* See QVector3D::distanceToPlane(QVector3D,QVector3D,QVector3D)const
*/
@io.qt.QtUninvokable
public final float distanceToPlane(io.qt.gui.QVector3D plane1, io.qt.gui.QVector3D plane2, io.qt.gui.QVector3D plane3){
return distanceToPlane_native_QVector3D_QVector3D_QVector3D_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(plane1), QtJambi_LibraryUtilities.internal.checkedNativeId(plane2), QtJambi_LibraryUtilities.internal.checkedNativeId(plane3));
}
@io.qt.QtUninvokable
private native float distanceToPlane_native_QVector3D_QVector3D_QVector3D_constfct(long __this__nativeId, long plane1, long plane2, long plane3);
/**
* See QVector3D::distanceToPoint(QVector3D)const
*/
@io.qt.QtUninvokable
public final float distanceToPoint(io.qt.gui.QVector3D point){
return distanceToPoint_native_QVector3D_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(point));
}
@io.qt.QtUninvokable
private native float distanceToPoint_native_QVector3D_constfct(long __this__nativeId, long point);
/**
*
*/
@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 QVector3D::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 QVector3D::normalized()const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QVector3D normalized(){
return normalized_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QVector3D normalized_native_constfct(long __this__nativeId);
/**
* See QVector3D::operator*=(QVector3D)
*/
@io.qt.QtUninvokable
public final io.qt.gui.QVector3D multiply(io.qt.gui.QVector3D vector){
multiply_native_QVector3D(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(vector));
return this;
}
@io.qt.QtUninvokable
private native io.qt.gui.QVector3D multiply_native_QVector3D(long __this__nativeId, long vector);
/**
* See QVector3D::operator*=(float)
*/
@io.qt.QtUninvokable
public final io.qt.gui.QVector3D multiply(float factor){
multiply_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), factor);
return this;
}
@io.qt.QtUninvokable
private native io.qt.gui.QVector3D multiply_native_float(long __this__nativeId, float factor);
/**
* See QVector3D::operator+=(QVector3D)
*/
@io.qt.QtUninvokable
public final io.qt.gui.QVector3D add(io.qt.gui.QVector3D vector){
add_native_QVector3D(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(vector));
return this;
}
@io.qt.QtUninvokable
private native io.qt.gui.QVector3D add_native_QVector3D(long __this__nativeId, long vector);
/**
* See QVector3D::operator-=(QVector3D)
*/
@io.qt.QtUninvokable
public final io.qt.gui.QVector3D subtract(io.qt.gui.QVector3D vector){
subtract_native_QVector3D(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(vector));
return this;
}
@io.qt.QtUninvokable
private native io.qt.gui.QVector3D subtract_native_QVector3D(long __this__nativeId, long vector);
/**
* See QVector3D::operator/=(QVector3D)
*/
@io.qt.QtUninvokable
public final io.qt.gui.QVector3D divide(io.qt.gui.QVector3D vector){
divide_native_QVector3D(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(vector));
return this;
}
@io.qt.QtUninvokable
private native io.qt.gui.QVector3D divide_native_QVector3D(long __this__nativeId, long vector);
/**
* See QVector3D::operator/=(float)
*/
@io.qt.QtUninvokable
public final io.qt.gui.QVector3D divide(float divisor){
divide_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), divisor);
return this;
}
@io.qt.QtUninvokable
private native io.qt.gui.QVector3D 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.QVector3D v2){
return operator_equal_native_QVector3D(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(v2));
}
@io.qt.QtUninvokable
private native boolean operator_equal_native_QVector3D(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);
/**
* See QVector3D::project(QMatrix4x4,QMatrix4x4,QRect)const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QVector3D project(io.qt.gui.QMatrix4x4 modelView, io.qt.gui.QMatrix4x4 projection, io.qt.core.QRect viewport){
return project_native_cref_QMatrix4x4_cref_QMatrix4x4_cref_QRect_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(modelView), QtJambi_LibraryUtilities.internal.checkedNativeId(projection), QtJambi_LibraryUtilities.internal.checkedNativeId(viewport));
}
@io.qt.QtUninvokable
private native io.qt.gui.QVector3D project_native_cref_QMatrix4x4_cref_QMatrix4x4_cref_QRect_constfct(long __this__nativeId, long modelView, long projection, long viewport);
/**
*
*/
@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 QVector3D::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 QVector3D::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 QVector3D::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 QVector3D::unproject(QMatrix4x4,QMatrix4x4,QRect)const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QVector3D unproject(io.qt.gui.QMatrix4x4 modelView, io.qt.gui.QMatrix4x4 projection, io.qt.core.QRect viewport){
return unproject_native_cref_QMatrix4x4_cref_QMatrix4x4_cref_QRect_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(modelView), QtJambi_LibraryUtilities.internal.checkedNativeId(projection), QtJambi_LibraryUtilities.internal.checkedNativeId(viewport));
}
@io.qt.QtUninvokable
private native io.qt.gui.QVector3D unproject_native_cref_QMatrix4x4_cref_QMatrix4x4_cref_QRect_constfct(long __this__nativeId, long modelView, long projection, long viewport);
/**
*
*/
@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 QVector3D::crossProduct(QVector3D,QVector3D)
*/
public static io.qt.gui.QVector3D crossProduct(io.qt.gui.QVector3D v1, io.qt.gui.QVector3D v2){
return crossProduct_native_QVector3D_QVector3D(QtJambi_LibraryUtilities.internal.checkedNativeId(v1), QtJambi_LibraryUtilities.internal.checkedNativeId(v2));
}
private native static io.qt.gui.QVector3D crossProduct_native_QVector3D_QVector3D(long v1, long v2);
/**
* See QVector3D::dotProduct(QVector3D,QVector3D)
*/
public static float dotProduct(io.qt.gui.QVector3D v1, io.qt.gui.QVector3D v2){
return dotProduct_native_QVector3D_QVector3D(QtJambi_LibraryUtilities.internal.checkedNativeId(v1), QtJambi_LibraryUtilities.internal.checkedNativeId(v2));
}
private native static float dotProduct_native_QVector3D_QVector3D(long v1, long v2);
/**
* See QVector3D::normal(QVector3D,QVector3D)
*/
public static io.qt.gui.QVector3D normal(io.qt.gui.QVector3D v1, io.qt.gui.QVector3D v2){
return normal_native_QVector3D_QVector3D(QtJambi_LibraryUtilities.internal.checkedNativeId(v1), QtJambi_LibraryUtilities.internal.checkedNativeId(v2));
}
private native static io.qt.gui.QVector3D normal_native_QVector3D_QVector3D(long v1, long v2);
/**
* See QVector3D::normal(QVector3D,QVector3D,QVector3D)
*/
public static io.qt.gui.QVector3D normal(io.qt.gui.QVector3D v1, io.qt.gui.QVector3D v2, io.qt.gui.QVector3D v3){
return normal_native_QVector3D_QVector3D_QVector3D(QtJambi_LibraryUtilities.internal.checkedNativeId(v1), QtJambi_LibraryUtilities.internal.checkedNativeId(v2), QtJambi_LibraryUtilities.internal.checkedNativeId(v3));
}
private native static io.qt.gui.QVector3D normal_native_QVector3D_QVector3D_QVector3D(long v1, long v2, long v3);
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QVector3D(QPrivateConstructor p) { super(p); }
@Override
@io.qt.QtUninvokable
public boolean equals(Object other) {
if (other instanceof io.qt.gui.QVector3D) {
return operator_equal((io.qt.gui.QVector3D) 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 QVector3D clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native QVector3D clone_native(long __this_nativeId);
}