原创 努力向物理引擎方向蠕行....

希望電子出版社的<遊戲編程中的數理應用>...圖書館借的...哈哈...瀏覽了一下~~其中的數學物理知識基本都在高中學過...不過在編程中沒應用過多少,還是認真看的好...打好基礎...嗯嗯~~~在這裏做做筆記...

原创 數理應用 1.4 交線

// find the point of intersection between two lines 點斜式,兩直線不平行 float *lineIntersect (float *L1point, float LiSlope, flo

原创 定語從句

限定性: 從句部分系主句意義中不可或缺的部分 There is one point where i'd like your advice. 非限定性: 附加說明作用 I have many friends, some of whom ca

原创 數理應用 1.2 1.3 線

直線斜率: float SlopeBetweenPoints (float *p1, float *p2)  //???浮點數組??? { return (p2[1] - p1[1]) / (p1[0] - p2[0]); } 判斷垂直

原创 數理應用 1.1 點

檢測輸入的整形數是否爲2的乘方: Bool powoftwo (int num) { return !(num & (num -1));  //嗯嗯,記住 } 右手直角座標系; 點類型結構: Float 3dpoint[3]; St