Class MassSpringSurface

    • Field Detail

      • mNumRows

        protected int mNumRows
      • mNumCols

        protected int mNumCols
      • mNumRowsM1

        protected int mNumRowsM1
      • mNumColsM1

        protected int mNumColsM1
      • mConstantsR

        protected float[][] mConstantsR
      • mLengthsR

        protected float[][] mLengthsR
      • mConstantsC

        protected float[][] mConstantsC
      • mLengthsC

        protected float[][] mLengthsC
    • Constructor Detail

      • MassSpringSurface

        public MassSpringSurface​(int numRows,
                                 int numCols,
                                 float step)
    • Method Detail

      • GetNumRows

        public int GetNumRows()
      • GetNumCols

        public int GetNumCols()
      • SetMass

        public void SetMass​(int row,
                            int col,
                            float mass)
      • GetMass

        public float GetMass​(int row,
                             int col)
      • GetPosition

        public Vector3f GetPosition​(int row,
                                    int col)
      • SetPosition

        public void SetPosition​(int row,
                                int col,
                                Vector3f p)
      • GetVelocity

        public Vector3f GetVelocity​(int row,
                                    int col)
      • SetVelocity

        public void SetVelocity​(int row,
                                int col,
                                Vector3f v)
      • GetConstantR

        public float GetConstantR​(int row,
                                  int col)
      • SetConstantR

        public void SetConstantR​(int row,
                                 int col,
                                 float c)
      • GetConstantC

        public float GetConstantC​(int row,
                                  int col)
      • SetConstantC

        public void SetConstantC​(int row,
                                 int col,
                                 float c)
      • GetLengthR

        public float GetLengthR​(int row,
                                int col)
      • SetLengthR

        public void SetLengthR​(int row,
                               int col,
                               float c)
      • GetLengthC

        public float GetLengthC​(int row,
                                int col)
      • SetLengthC

        public void SetLengthC​(int row,
                               int col,
                               float c)
      • GetIndex

        protected int GetIndex​(int row,
                               int col)
      • GetCoordinates

        protected void GetCoordinates​(int i,
                                      int[] row,
                                      int[] col)
      • ExternalAcceleration

        public Vector3f ExternalAcceleration​(int i,
                                             float time,
                                             Vector3f[] positions,
                                             Vector3f[] velocities)