com.vodafone.v10.graphics.j3d
Class Util3D

java.lang.Object
  |
  +--com.vodafone.v10.graphics.j3d.Util3D

public class Util3D
extends java.lang.Object

Utility class.


Method Summary
static int cos(int a)
          Calculates cosine.
static int sin(int a)
          Calculates sine.
static int sqrt(int x)
          Calculates a square root.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

sqrt

public static final int sqrt(int x)
Calculates a square root.
Parameters:
x - The value to be calculated
Throws:
IllegalArgumentException - if x is negative.
IllegalStateException - if called during sprite execution.

sin

public static final int sin(int a)
Calculates sine.
Parameters:
a - Angle (4096 segments)
Throws:
IllegalStateException - if called during sprite execution.

cos

public static final int cos(int a)
Calculates cosine.
Parameters:
a - Angle (4096 segments)
Throws:
IllegalStateException - if called during sprite execution.


Copyright 2002,2003 Aplix Corporation. All rights reserved. Aplix Confidential and Restricted.