/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 1.3.36
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */


using System;
using System.Runtime.InteropServices;

public class OBAngle : IDisposable {
  private HandleRef swigCPtr;
  protected bool swigCMemOwn;

  internal OBAngle(IntPtr cPtr, bool cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = new HandleRef(this, cPtr);
  }

  internal static HandleRef getCPtr(OBAngle obj) {
    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
  }

  ~OBAngle() {
    Dispose();
  }

  public virtual void Dispose() {
    lock(this) {
      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
        swigCMemOwn = false;
        openbabelPINVOKE.delete_OBAngle(swigCPtr);
      }
      swigCPtr = new HandleRef(null, IntPtr.Zero);
      GC.SuppressFinalize(this);
    }
  }

  public OBAngle(OBAngle arg0) : this(openbabelPINVOKE.new_OBAngle__SWIG_2(OBAngle.getCPtr(arg0)), true) {
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
  }

  public void Clear() {
    openbabelPINVOKE.OBAngle_Clear(swigCPtr);
  }

  public double GetAngle() {
    double ret = openbabelPINVOKE.OBAngle_GetAngle(swigCPtr);
    return ret;
  }

  public void SetAngle(double angle) {
    openbabelPINVOKE.OBAngle_SetAngle(swigCPtr, angle);
  }

  public void SetAtoms(OBAtom vertex, OBAtom a, OBAtom b) {
    openbabelPINVOKE.OBAngle_SetAtoms__SWIG_0(swigCPtr, OBAtom.getCPtr(vertex), OBAtom.getCPtr(a), OBAtom.getCPtr(b));
  }

  public void SetAtoms(SWIGTYPE_p_OpenBabel__tripleT_OpenBabel__OBAtom_p_OpenBabel__OBAtom_p_OpenBabel__OBAtom_p_t atoms) {
    openbabelPINVOKE.OBAngle_SetAtoms__SWIG_1(swigCPtr, SWIGTYPE_p_OpenBabel__tripleT_OpenBabel__OBAtom_p_OpenBabel__OBAtom_p_OpenBabel__OBAtom_p_t.getCPtr(atoms));
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
  }

}
