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


Class name: CPoint extends: SwigProxy fields: swigCPtrForCPoint, swigCMemoryOwn {

  Method [ pvtSetCPtr: newCPtr memoryOwn: newCMemoryOwn
    swigCMemoryOwn := newCMemoryOwn.
    swigCPtrForCPoint := newCPtr.
  ]

  Method [ getCPtrForCPoint
    ^swigCPtrForCPoint
  ]


  Method[ swigFinalize
    super swigFinalize.
    self delete.
  ]

  Method [ delete 
    (swigCMemoryOwn and:[ swigCPtrForCPoint ~~ 0 ]) ifTrue:[
      swigCMemoryOwn := false.
      CslNI cslNI_delete_CPoint: swigCPtrForCPoint.
    ].
    swigCPtrForCPoint := 0.
  ]

  Function[ getCPtr: obj
     obj isNil ifTrue:[^0].
     ^obj getCPtrForCPoint
  ]

  Method [ setDimn: dimn 
    CslNI cslNI_set_CPoint_dimn: swigCPtrForCPoint with: dimn
  ]

  Method [ getDimn 
    ^CslNI cslNI_get_CPoint_dimn: swigCPtrForCPoint 
  ]

  Method [ setX: x 
    CslNI cslNI_set_CPoint_x: swigCPtrForCPoint with: x
  ]

  Method [ getX 
    ^CslNI cslNI_get_CPoint_x: swigCPtrForCPoint 
  ]

  Method [ setY: y 
    CslNI cslNI_set_CPoint_y: swigCPtrForCPoint with: y
  ]

  Method [ getY 
    ^CslNI cslNI_get_CPoint_y: swigCPtrForCPoint 
  ]

  Method [ setZ: z 
    CslNI cslNI_set_CPoint_z: swigCPtrForCPoint with: z
  ]

  Method [ getZ 
    ^CslNI cslNI_get_CPoint_z: swigCPtrForCPoint 
  ]

  Function [ new
    ^self fromPointer: (CslNI cslNI_new_CPoint__SWIG_0) memoryOwn: true
  ]

  Function [ a: a
    ^self fromPointer: (CslNI cslNI_new_CPoint__SWIG_1: a) memoryOwn: true
  ]

  Function [ a: a
    ^self fromPointer: (CslNI cslNI_new_CPoint__SWIG_2: a) memoryOwn: true
  ]

  Function [ a: a
    ^self fromPointer: (CslNI cslNI_new_CPoint__SWIG_3: a) memoryOwn: true
  ]

  Function [ a: a b: b
    ^self fromPointer: (CslNI cslNI_new_CPoint__SWIG_4: a, b) memoryOwn: true
  ]

  Function [ a: a b: b
    ^self fromPointer: (CslNI cslNI_new_CPoint__SWIG_5: a, b) memoryOwn: true
  ]

  Function [ a: a b: b
    ^self fromPointer: (CslNI cslNI_new_CPoint__SWIG_6: a, b) memoryOwn: true
  ]

  Function [ a: a b: b c: c
    ^self fromPointer: (CslNI cslNI_new_CPoint__SWIG_7: a, b, c) memoryOwn: true
  ]

  Function [ a: a b: b c: c
    ^self fromPointer: (CslNI cslNI_new_CPoint__SWIG_8: a, b, c) memoryOwn: true
  ]

  Function [ a: a b: b c: c
    ^self fromPointer: (CslNI cslNI_new_CPoint__SWIG_9: a, b, c) memoryOwn: true
  ]

  Function [ m: m r: r theta: theta
    ^self fromPointer: (CslNI cslNI_new_CPoint__SWIG_10: m, r, theta) memoryOwn: true
  ]

  Function [ s: s r: r theta: theta
    ^self fromPointer: (CslNI cslNI_new_CPoint__SWIG_11: s asCharacterParameter, r, theta) memoryOwn: true
  ]

  Function [ m: m r: r theta: theta psi: psi
    ^self fromPointer: (CslNI cslNI_new_CPoint__SWIG_12: m, r, theta, psi) memoryOwn: true
  ]

  Function [ s: s r: r theta: theta ele: ele
    ^self fromPointer: (CslNI cslNI_new_CPoint__SWIG_13: s asCharacterParameter, r, theta, ele) memoryOwn: true
  ]

  Method [ set: a b: b 
    CslNI cslNI_CPoint_set__SWIG_0: swigCPtrForCPoint with: a with: b
  ]

  Method [ set: a b: b c: c 
    CslNI cslNI_CPoint_set__SWIG_1: swigCPtrForCPoint with: a with: b with: c
  ]

  Method [ set: a b: b 
    CslNI cslNI_CPoint_set__SWIG_2: swigCPtrForCPoint with: a with: b
  ]

  Method [ set: a b: b c: c 
    CslNI cslNI_CPoint_set__SWIG_3: swigCPtrForCPoint with: a with: b with: c
  ]

  Method [ set: a b: b 
    CslNI cslNI_CPoint_set__SWIG_4: swigCPtrForCPoint with: a with: b
  ]

  Method [ set: a b: b c: c 
    CslNI cslNI_CPoint_set__SWIG_5: swigCPtrForCPoint with: a with: b with: c
  ]

  Method [ set: m a: a b: b 
    CslNI cslNI_CPoint_set__SWIG_6: swigCPtrForCPoint with: m with: a with: b
  ]

  Method [ set: m a: a b: b c: c 
    CslNI cslNI_CPoint_set__SWIG_7: swigCPtrForCPoint with: m with: a with: b with: c
  ]

  Method [ set: s r: r theta: theta 
    CslNI cslNI_CPoint_set__SWIG_8: swigCPtrForCPoint with: s asCharacterParameter with: r with: theta
  ]

  Method [ set: s r: r theta: theta ele: ele 
    CslNI cslNI_CPoint_set__SWIG_9: swigCPtrForCPoint with: s asCharacterParameter with: r with: theta with: ele
  ]

  Method [ dim 
    ^CslNI cslNI_CPoint_dim: swigCPtrForCPoint 
  ]

  Method [ setdim: arg0 
    ^CslNI cslNI_CPoint_setdim: swigCPtrForCPoint with: arg0
  ]

  Method [ distance: arg0 
    ^CslNI cslNI_CPoint_distance__SWIG_0: swigCPtrForCPoint with: (CPoint getCPtr: arg0)
  ]

  Method [ distance2: arg0 
    ^CslNI cslNI_CPoint_distance2__SWIG_0: swigCPtrForCPoint with: (CPoint getCPtr: arg0)
  ]

  Method [ distance: arg0 
    ^CslNI cslNI_CPoint_distance__SWIG_1: swigCPtrForCPoint with: (CPoint getCPtr: arg0)
  ]

  Method [ distance2: arg0 
    ^CslNI cslNI_CPoint_distance2__SWIG_1: swigCPtrForCPoint with: (CPoint getCPtr: arg0)
  ]

  Method [ len 
    ^CslNI cslNI_CPoint_len: swigCPtrForCPoint 
  ]

  Method [ len2 
    ^CslNI cslNI_CPoint_len2: swigCPtrForCPoint 
  ]

  Method [ r 
    ^CslNI cslNI_CPoint_r: swigCPtrForCPoint 
  ]

  Method [ theta 
    ^CslNI cslNI_CPoint_theta: swigCPtrForCPoint 
  ]

  Method [ phi 
    ^CslNI cslNI_CPoint_phi: swigCPtrForCPoint 
  ]

  Method [ ele 
    ^CslNI cslNI_CPoint_ele: swigCPtrForCPoint 
  ]

  Method [ rotateBy: angle 
    CslNI cslNI_CPoint_rotateBy: swigCPtrForCPoint with: angle
  ]

  Method [ dump 
    CslNI cslNI_CPoint_dump: swigCPtrForCPoint 
  ]

  Method [ normalize 
    CslNI cslNI_CPoint_normalize: swigCPtrForCPoint 
  ]

}
