Package svs_simulation :: Package numdata :: Module matrices :: Class Matrix2D
[show private | hide private]
[frames | no frames]

Class Matrix2D


Basic matrix class for 2D calculations.
Method Summary
  __init__(self)
  angleRotation(self, angle)
Rotate matrix by specified angle.
  identity(self)
Create an identity matrix.
  matrixMultiply(self, otherMatrix)
Multiply another matrix with this one.
  scale(self, xScale, yScale)
Scale matrix by specified dimensions.
  transformVector2D(self, vector)
Applies a 2D transformation matrix to a single svs_demogame.numdata.vectors.Vector2D.
  transformVector2DList(self, vectors)
Applies a 2D transformation matrix to an array of svs_demogame.numdata.vectors.Vector2Ds.
  translate(self, x, y)
Transform matrix on x and y axes.
  vectorRotation(self, fwdVector, sideVector)
Rotate matrix by specified 2 vectors.

Method Details

angleRotation(self, angle)

Rotate matrix by specified angle.
Parameters:
angle
           (type=float)

identity(self)

Create an identity matrix.

matrixMultiply(self, otherMatrix)

Multiply another matrix with this one.

scale(self, xScale, yScale)

Scale matrix by specified dimensions.
Parameters:
xScale
           (type=float)
yScale
           (type=float)

transformVector2D(self, vector)

Applies a 2D transformation matrix to a single svs_demogame.numdata.vectors.Vector2D.

transformVector2DList(self, vectors)

Applies a 2D transformation matrix to an array of svs_demogame.numdata.vectors.Vector2Ds.

translate(self, x, y)

Transform matrix on x and y axes.
Parameters:
x
           (type=float)
y
           (type=float)

vectorRotation(self, fwdVector, sideVector)

Rotate matrix by specified 2 vectors.
Parameters:
fwdVector
           (type=svs_demogame.numdata.vectors.Vector2D)
sideVector
           (type=svs_demogame.numdata.vectors.Vector2D)

Generated by Epydoc 2.1 on Thu Oct 20 15:30:30 2005 http://epydoc.sf.net