mirror of
https://github.com/openbabel/openbabel.git
synced 2026-08-01 00:58:00 -05:00
Updated with automated Java generation and SWIG 1.3.30.
This commit is contained in:
+22
-22
@@ -1,6 +1,6 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 1.3.29
|
||||
* Version 1.3.30
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
@@ -24,7 +24,7 @@ public class vector3 {
|
||||
delete();
|
||||
}
|
||||
|
||||
public void delete() {
|
||||
public synchronized void delete() {
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
net.sourceforge.openbabelJNI.delete_vector3(swigCPtr);
|
||||
@@ -49,84 +49,84 @@ public class vector3 {
|
||||
}
|
||||
|
||||
public vector3(vector3 v) {
|
||||
this(net.sourceforge.openbabelJNI.new_vector3__SWIG_4(vector3.getCPtr(v)), true);
|
||||
this(net.sourceforge.openbabelJNI.new_vector3__SWIG_4(vector3.getCPtr(v), v), true);
|
||||
}
|
||||
|
||||
public void Set(double x, double y, double z) {
|
||||
net.sourceforge.openbabelJNI.vector3_Set__SWIG_0(swigCPtr, x, y, z);
|
||||
net.sourceforge.openbabelJNI.vector3_Set__SWIG_0(swigCPtr, this, x, y, z);
|
||||
}
|
||||
|
||||
public void Set(SWIGTYPE_p_double c) {
|
||||
net.sourceforge.openbabelJNI.vector3_Set__SWIG_1(swigCPtr, SWIGTYPE_p_double.getCPtr(c));
|
||||
net.sourceforge.openbabelJNI.vector3_Set__SWIG_1(swigCPtr, this, SWIGTYPE_p_double.getCPtr(c));
|
||||
}
|
||||
|
||||
public void SetX(double x) {
|
||||
net.sourceforge.openbabelJNI.vector3_SetX(swigCPtr, x);
|
||||
net.sourceforge.openbabelJNI.vector3_SetX(swigCPtr, this, x);
|
||||
}
|
||||
|
||||
public void SetY(double y) {
|
||||
net.sourceforge.openbabelJNI.vector3_SetY(swigCPtr, y);
|
||||
net.sourceforge.openbabelJNI.vector3_SetY(swigCPtr, this, y);
|
||||
}
|
||||
|
||||
public void SetZ(double z) {
|
||||
net.sourceforge.openbabelJNI.vector3_SetZ(swigCPtr, z);
|
||||
net.sourceforge.openbabelJNI.vector3_SetZ(swigCPtr, this, z);
|
||||
}
|
||||
|
||||
public void Get(SWIGTYPE_p_double c) {
|
||||
net.sourceforge.openbabelJNI.vector3_Get(swigCPtr, SWIGTYPE_p_double.getCPtr(c));
|
||||
net.sourceforge.openbabelJNI.vector3_Get(swigCPtr, this, SWIGTYPE_p_double.getCPtr(c));
|
||||
}
|
||||
|
||||
public boolean IsApprox(vector3 arg0, double precision) {
|
||||
return net.sourceforge.openbabelJNI.vector3_IsApprox(swigCPtr, vector3.getCPtr(arg0), precision);
|
||||
return net.sourceforge.openbabelJNI.vector3_IsApprox(swigCPtr, this, vector3.getCPtr(arg0), arg0, precision);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_double AsArray() {
|
||||
long cPtr = net.sourceforge.openbabelJNI.vector3_AsArray(swigCPtr);
|
||||
long cPtr = net.sourceforge.openbabelJNI.vector3_AsArray(swigCPtr, this);
|
||||
return (cPtr == 0) ? null : new SWIGTYPE_p_double(cPtr, false);
|
||||
}
|
||||
|
||||
public void randomUnitVector(OBRandom oeRand) {
|
||||
net.sourceforge.openbabelJNI.vector3_randomUnitVector__SWIG_0(swigCPtr, OBRandom.getCPtr(oeRand));
|
||||
net.sourceforge.openbabelJNI.vector3_randomUnitVector__SWIG_0(swigCPtr, this, OBRandom.getCPtr(oeRand), oeRand);
|
||||
}
|
||||
|
||||
public void randomUnitVector() {
|
||||
net.sourceforge.openbabelJNI.vector3_randomUnitVector__SWIG_1(swigCPtr);
|
||||
net.sourceforge.openbabelJNI.vector3_randomUnitVector__SWIG_1(swigCPtr, this);
|
||||
}
|
||||
|
||||
public vector3 normalize() {
|
||||
return new vector3(net.sourceforge.openbabelJNI.vector3_normalize(swigCPtr), false);
|
||||
return new vector3(net.sourceforge.openbabelJNI.vector3_normalize(swigCPtr, this), false);
|
||||
}
|
||||
|
||||
public boolean CanBeNormalized() {
|
||||
return net.sourceforge.openbabelJNI.vector3_CanBeNormalized(swigCPtr);
|
||||
return net.sourceforge.openbabelJNI.vector3_CanBeNormalized(swigCPtr, this);
|
||||
}
|
||||
|
||||
public double length() {
|
||||
return net.sourceforge.openbabelJNI.vector3_length(swigCPtr);
|
||||
return net.sourceforge.openbabelJNI.vector3_length(swigCPtr, this);
|
||||
}
|
||||
|
||||
public double length_2() {
|
||||
return net.sourceforge.openbabelJNI.vector3_length_2(swigCPtr);
|
||||
return net.sourceforge.openbabelJNI.vector3_length_2(swigCPtr, this);
|
||||
}
|
||||
|
||||
public double x() {
|
||||
return net.sourceforge.openbabelJNI.vector3_x(swigCPtr);
|
||||
return net.sourceforge.openbabelJNI.vector3_x(swigCPtr, this);
|
||||
}
|
||||
|
||||
public double y() {
|
||||
return net.sourceforge.openbabelJNI.vector3_y(swigCPtr);
|
||||
return net.sourceforge.openbabelJNI.vector3_y(swigCPtr, this);
|
||||
}
|
||||
|
||||
public double z() {
|
||||
return net.sourceforge.openbabelJNI.vector3_z(swigCPtr);
|
||||
return net.sourceforge.openbabelJNI.vector3_z(swigCPtr, this);
|
||||
}
|
||||
|
||||
public double distSq(vector3 vv) {
|
||||
return net.sourceforge.openbabelJNI.vector3_distSq(swigCPtr, vector3.getCPtr(vv));
|
||||
return net.sourceforge.openbabelJNI.vector3_distSq(swigCPtr, this, vector3.getCPtr(vv), vv);
|
||||
}
|
||||
|
||||
public boolean createOrthoVector(vector3 v) {
|
||||
return net.sourceforge.openbabelJNI.vector3_createOrthoVector(swigCPtr, vector3.getCPtr(v));
|
||||
return net.sourceforge.openbabelJNI.vector3_createOrthoVector(swigCPtr, this, vector3.getCPtr(v), v);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user