/*
 * @(#)transformMatrix2d.java        1.0 2002/08/01
 *
 * Copyright 2001-2006 by Danger Research, Inc.
 * 3101 Park Blvd, Palo Alto, CA  94301
 * All rights reserved.
 */
package com.danger.test3d;

import danger.util.*;


class transformMatrix2d extends matrix2d
{
	//~ Methods ----------------------------------------------------------------

	/**
	 * DOCUMENT ME!
	 */
	public void Clear()
	{
		super.Clear();
		matrix[2 + (2 * 3)] = 1;
	}

	/**
	 * DOCUMENT ME!
	 *
	 * @param theta DOCUMENT ME!
	 */
	public void SetRotation(int theta)
	{
		matrix[0 + (0 * 3)]     = Fixed.cos(theta);
		matrix[1 + (0 * 3)]     = -Fixed.sin(theta);
		matrix[0 + (1 * 3)]     = Fixed.sin(theta);
		matrix[1 + (1 * 3)]     = Fixed.cos(theta);
	}
}
