www.pudn.com > 3dtennis.rar > CMat.java
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi
import com.mascotcapsule.micro3d.v3.AffineTrans;
class CMat extends AffineTrans
{
static int base[][] = {
{
4096, 0, 0, 0
}, {
0, 4096, 0, 0
}, {
0, 0, 4096, 0
}
};
static AffineTrans tmp_rot;
static AffineTrans tmp_trs;
static AffineTrans tmp_scl;
CMat()
{
super(base);
}
void Base()
{
set(base);
}
void YXZrot(int i, int j, int k)
{
tmp_rot.rotationY(i);
mul(tmp_rot);
tmp_rot.rotationX(j);
mul(tmp_rot);
tmp_rot.rotationZ(k);
mul(tmp_rot);
}
void Yrot(int i)
{
tmp_rot.rotationY(i);
mul(tmp_rot);
}
void Trans(int i, int j, int k)
{
tmp_trs.m03 = i;
tmp_trs.m13 = j;
tmp_trs.m23 = k;
mul(tmp_trs);
}
void SetTrans(int i, int j, int k)
{
m03 = i;
m13 = j;
m23 = k;
}
static
{
tmp_rot = new AffineTrans(base);
tmp_trs = new AffineTrans(base);
tmp_scl = new AffineTrans(base);
}
}