/* ----------------------------------------------------------------------------
 * 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 transform3d : IDisposable {
  private HandleRef swigCPtr;
  protected bool swigCMemOwn;

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

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

  ~transform3d() {
    Dispose();
  }

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

  public transform3d() : this(openbabelPINVOKE.new_transform3d__SWIG_0(), true) {
  }

  public transform3d(matrix3x3 m, vector3 v) : this(openbabelPINVOKE.new_transform3d__SWIG_1(matrix3x3.getCPtr(m), vector3.getCPtr(v)), true) {
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
  }

  public transform3d(double s) : this(openbabelPINVOKE.new_transform3d__SWIG_2(s), true) {
  }

  public transform3d(vector3 row1, vector3 row2, vector3 row3, vector3 translation) : this(openbabelPINVOKE.new_transform3d__SWIG_3(vector3.getCPtr(row1), vector3.getCPtr(row2), vector3.getCPtr(row3), vector3.getCPtr(translation)), true) {
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
  }

  public transform3d(SWIGTYPE_p_a_3__double d, SWIGTYPE_p_double t) : this(openbabelPINVOKE.new_transform3d__SWIG_4(SWIGTYPE_p_a_3__double.getCPtr(d), SWIGTYPE_p_double.getCPtr(t)), true) {
  }

  public string DescribeAsString() {
    string ret = openbabelPINVOKE.transform3d_DescribeAsString(swigCPtr);
    return ret;
  }

  public string DescribeAsValues() {
    string ret = openbabelPINVOKE.transform3d_DescribeAsValues(swigCPtr);
    return ret;
  }

  public void Normalize() {
    openbabelPINVOKE.transform3d_Normalize(swigCPtr);
  }

}
