⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 point3d.java

📁 一个J2ME的3D 一个J2ME的3D 一个J2ME的3D
💻 JAVA
字号:
/**
 * 
 */
package Math;

/**
 * @author PanXu
 *
 */
public class Point3D {

	/**
	 * 
	 */
	public static final int X = 0 ;
	public static final int Y = 0 ;
	public static final int Z = 0 ;
	
	public float M[] = null; 
	public Point3D() {
		super();
		// TODO 自动生成构造函数存根
		M = new float [3];
		M[0] = 0 ;
		M[1] = 0 ;
		M[2] = 0 ;
	}
	public Point3D(float x,float y,float z) {
		super();
		// TODO 自动生成构造函数存根
		M = new float [3];
		M[0] = x ;
		M[1] = y ;
		M[2] = z ;
	}
	public void Init (float x ,float y , float z)
	{
		this .M[0] = x;
		this .M[1] = y;
		this .M[2] = z;
	}
	public Point3D MAT3X3_MUL_PT3D (Matrix3X3 Mat)
	{
		Point3D res = new Point3D();
		res .M[0] = M[0] * Mat.M[0][0] + M[1] * Mat.M[1][0] + M[2] * Mat.M[2][0];
		res .M[1] = M[0] * Mat.M[0][1] + M[1] * Mat.M[1][1] + M[2] * Mat.M[2][1];
		res .M[2] = M[0] * Mat.M[0][2] + M[1] * Mat.M[1][2] + M[2] * Mat.M[2][2];
		return res ;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -