Package ffx.openmm

Class Vec3Array

java.lang.Object
ffx.openmm.Vec3Array

public class Vec3Array extends Object
Vec3 Array.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Vec3Array(int size)
    OpenMM Vec3 Array constructor.
    Vec3Array(com.sun.jna.ptr.PointerByReference pointer)
    OpenMM Vec3 Array constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    append(edu.uiowa.jopenmm.OpenMM_Vec3.ByValue vec3)
    Append a Vec3 to the Vec3Array.
    void
    Destroy the Vec3Array.
    edu.uiowa.jopenmm.OpenMM_Vec3
    get(int i)
    Get a Vec3 from the Vec3Array.
    double[]
    Convert the Vec3Array to a double array.
    com.sun.jna.ptr.PointerByReference
    Get the pointer to the vec3 array pointer.
    int
    Get the size of the Vec3Array.
    void
    resize(int size)
    Resize the Vec3Array.
    void
    set(int i, edu.uiowa.jopenmm.OpenMM_Vec3.ByValue vec3)
    Set a Vec3 in the Vec3Array.
    static Vec3Array
    toVec3Array(double[] array)
    Convert a double array to a Vec3Array.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Vec3Array

      public Vec3Array(int size)
      OpenMM Vec3 Array constructor.
      Parameters:
      size - The size of the String Array.
    • Vec3Array

      public Vec3Array(com.sun.jna.ptr.PointerByReference pointer)
      OpenMM Vec3 Array constructor.
      Parameters:
      pointer - The Vec3 Array pointer.
  • Method Details

    • getPointer

      public com.sun.jna.ptr.PointerByReference getPointer()
      Get the pointer to the vec3 array pointer.
      Returns:
      The pointer to the vec3 array.
    • append

      public void append(edu.uiowa.jopenmm.OpenMM_Vec3.ByValue vec3)
      Append a Vec3 to the Vec3Array.
      Parameters:
      vec3 - The Vec3 to append.
    • get

      public edu.uiowa.jopenmm.OpenMM_Vec3 get(int i)
      Get a Vec3 from the Vec3Array.
      Returns:
      The Vec3 at index i.
    • getSize

      public int getSize()
      Get the size of the Vec3Array.
      Returns:
      The size of the Vec3Array.
    • resize

      public void resize(int size)
      Resize the Vec3Array.
      Parameters:
      size - The new size of the Vec3Array.
    • set

      public void set(int i, edu.uiowa.jopenmm.OpenMM_Vec3.ByValue vec3)
      Set a Vec3 in the Vec3Array.
      Parameters:
      i - The index of the Vec3 to set.
      vec3 - The Vec3 to set.
    • destroy

      public void destroy()
      Destroy the Vec3Array.
    • toVec3Array

      public static Vec3Array toVec3Array(double[] array)
      Convert a double array to a Vec3Array.
      Parameters:
      array - The double array.
      Returns:
      The Vec3Array.
    • getArray

      public double[] getArray()
      Convert the Vec3Array to a double array.
      Returns:
      The double array.