1
/* ----------------------------------------------------------------------------
2
* This file was automatically generated by SWIG (http://www.swig.org).
5
* Do not make changes to this file unless you know what you are doing--modify
6
* the SWIG interface file instead.
7
* ----------------------------------------------------------------------------- */
10
public class vVector3 {
11
private long swigCPtr;
12
protected boolean swigCMemOwn;
14
protected vVector3(long cPtr, boolean cMemoryOwn) {
15
swigCMemOwn = cMemoryOwn;
19
protected static long getCPtr(vVector3 obj) {
20
return (obj == null) ? 0 : obj.swigCPtr;
23
protected void finalize() {
27
public synchronized void delete() {
28
if(swigCPtr != 0 && swigCMemOwn) {
30
openbabelJNI.delete_vVector3(swigCPtr);
36
this(openbabelJNI.new_vVector3__SWIG_0(), true);
39
public vVector3(long n) {
40
this(openbabelJNI.new_vVector3__SWIG_1(n), true);
44
return openbabelJNI.vVector3_size(swigCPtr, this);
47
public long capacity() {
48
return openbabelJNI.vVector3_capacity(swigCPtr, this);
51
public void reserve(long n) {
52
openbabelJNI.vVector3_reserve(swigCPtr, this, n);
55
public boolean isEmpty() {
56
return openbabelJNI.vVector3_isEmpty(swigCPtr, this);
60
openbabelJNI.vVector3_clear(swigCPtr, this);
63
public void add(vector3 x) {
64
openbabelJNI.vVector3_add(swigCPtr, this, vector3.getCPtr(x), x);
67
public vector3 get(int i) {
68
return new vector3(openbabelJNI.vVector3_get(swigCPtr, this, i), false);
71
public void set(int i, vector3 val) {
72
openbabelJNI.vVector3_set(swigCPtr, this, i, vector3.getCPtr(val), val);