Class RDipoleMatrix

All Implemented Interfaces:
Cloneable

public final class RDipoleMatrix extends DipoleMatrix

RDipoleMatrix class.

Author:
igor@scictrl.com
  • Constructor Details

    • RDipoleMatrix

      public RDipoleMatrix(double newLength, double newK, double newRadius, double newLAngle, double newRAngle)
      SDipoleMatrix constructor comment.
      Parameters:
      newLength - double
      newK - double
      newRadius - double
      newLAngle - a double
      newRAngle - a double
  • Method Details

    • canJoin

      public boolean canJoin(DoubleMatrix matrix)
      Test if can be joined with this matrix.
      Overrides:
      canJoin in class DoubleMatrix
      Parameters:
      matrix - DoubleMatrix
      Returns:
      boolean
    • getEdgeAngle

      public double getEdgeAngle()

      getEdgeAngle.

      Returns:
      double
    • getLAngle

      public double getLAngle()

      Getter for the field lAngle.

      Returns:
      double
    • getRAngle

      public double getRAngle()

      Getter for the field rAngle.

      Returns:
      double
    • join

      public DoubleMatrix join(DoubleMatrix matrix)
      Multiplies matrix from right with this matrix and stores result in this matrix. Return Matrix is stih matrix. Multiplies matrix from right with this matrix and stores result in this matrix. Return Matrix is stih matrix.
      Overrides:
      join in class DoubleMatrix
      Parameters:
      matrix - DoubleMatrix
      Returns:
      DoubleMatrix this matrix =matrix times this matrix
    • makeMatrix

      protected double[][] makeMatrix()

      makeMatrix.

      Specified by:
      makeMatrix in class DipoleMatrix
      Returns:
      an array of
      invalid reference
      double
      objects
    • makeMatrix

      protected double[][] makeMatrix(double lAngle, double length, double rAngle, double[][] matrix)

      makeMatrix.

      Parameters:
      lAngle - a double
      length - a double
      rAngle - a double
      matrix - an array of
      invalid reference
      double
      objects
      Returns:
      an array of
      invalid reference
      double
      objects
    • multiplay

      public TransferMatrix multiplay(TransferMatrix matrix)

      multiplay.

      Multiplies matrix from right with this matrix and returns result as new matrix
      Overrides:
      multiplay in class TransferMatrix
      Parameters:
      matrix - a TransferMatrix object
      Returns:
      a TransferMatrix object
    • set

      public void set(double newLength, double newK, double newRadius, double lAngle, double rAngle)

      set.

      Parameters:
      newLength - a double
      newK - double
      newRadius - a double
      lAngle - a double
      rAngle - a double
    • setLAngle

      public void setLAngle(double newLAngle)

      Setter for the field lAngle.

      Parameters:
      newLAngle - double
    • setRAngle

      public void setRAngle(double newRAngle)

      Setter for the field rAngle.

      Parameters:
      newRAngle - double
    • toString

      public String toString()
      Returns a String that represents the value of this object.
      Overrides:
      toString in class DoubleMatrix