Up: Java Kali Source Code and Documentation

Class DMatrix

Class DMatrix

java.lang.Object
   |
   +----DMatrix

class DMatrix
extends Object
A DMatrix is a 2x2 matrix; each entry is a double.

Constructor Index

 o DMatrix()
Create a new matrix with unspecified entries.
 o DMatrix(double, double, double, double)
Create a new DMatrix with the given entries.

Method Index

 o det()
Return the determinant of this matrix.
 o inverse()
Return the inverse of this matrix.
 o times(DMatrix)
Multiply this matrix by another one.
 o times(DVector)
Multiply this matrix by a vector on the RIGHT: M.times(v) returns M * v.
 o toString()
Convert this matrix to a String.

Constructors

 o DMatrix
  public DMatrix(double x00,
                 double x01,
                 double x10,
                 double x11)
Create a new DMatrix with the given entries.
 o DMatrix
  public DMatrix()
Create a new matrix with unspecified entries.

Methods

 o times
  public DMatrix times(DMatrix N)
Multiply this matrix by another one. This is RIGHT multiplication: M.times(N) returns M * N.
 o times
  public DVector times(DVector v)
Multiply this matrix by a vector on the RIGHT: M.times(v) returns M * v.
 o det
  public double det()
Return the determinant of this matrix.
 o inverse
  public DMatrix inverse()
Return the inverse of this matrix.
 o toString
  public String toString()
Convert this matrix to a String.
Overrides:
toString in class Object


Up: Java Kali Source Code and Documentation

[HOME] The Geometry Center Home Page

Author: Mark Phillips
Comments to: webmaster@geom.umn.edu
Created: Sep 16 1996 --- Last modified: Sep 18 1996