- 博客(7)
- 资源 (1)
- 收藏
- 关注
原创 Games101 ---3
变换 为什么学习变换 1.表示旋转等复杂的动作 2.做动画 3.光栅化成像 二维的变换 缩放(Scale) 1.设 S1,S2为扩大或缩小的倍数 S1缩放x轴 S2缩放y轴 {x′y′}={S100S2}∗{xy}\begin{Bmatrix}\mathbf{x}^\mathrm{'}\\\mathbf{y}^\mathrm{'}\end{Bmatrix}=\begin{Bmatrix}S1&&0\\0&&S2\end{Bmatrix}*\begin{Bmatrix}x\\y
2021-12-12 15:57:22 220
原创 Games101 ---1
Games101 —1 以虎书为课本 图形学是什么? 让用谷歌翻译翻译一下: 术语计算机图形描述了任何使用计算机创建和操作图像。本书介绍了算法和数学工具,可用于创建各种图像 - 现实的视觉效果,信息性技术插图或美丽的计算机动画。图形可以是两维或三维的;图像可以是完全合成的,或者可以通过操纵照片来生产。本书是关于基本算法和数学产品,特别是那些用于生产三维物体和场景的合成图像的算法。 根据虎书来说,这是描述任何在电脑上创造操作图像使用的情况。 … 应用 游戏渲染 各种渲染方式 影视特效 渲染动画 表示几何
2021-12-12 15:06:04 336
原创 Games101 ---2
Games101 —2 向量 特征:有方向 有长度 单位向量 e⃗=a⃗∣b⃗∣\vec e =\frac {\vec a}{|\vec b|}e=∣b∣a 向量相加 坐标对应单位向量方向上的值相加 使用三角形定理或平行四边形定理 向量矩阵化 a⃗={xy}\vec a = \begin{Bmatrix} x\\ y \\ \end{Bmatrix} a={xy} 向量矩阵的转置 a⃗T={xy} \mathbf{\vec a}^\mathrm{T}=\begin{Bmatrix}x&a
2021-12-07 21:58:17 717
原创 插入排序手动实现
#include<iostream> using namespace std; int main() { int array[15]= {0}; for(int i = 0; i<10; i++){ cin>>array[i]; } int arr[15] = {0}; int n = 0; int k ; int t = 0; arr[0] = array[0]; ...
2021-12-07 15:37:26 183
原创 Stack应用----16进制内 任意进制转化成任意进制
#include<iostream> usingnamespacestd; #definedataTypechar charch[17]={'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F','G'}; classStack { private: dataType*data; inttop; dataType*bottom; intlen...
2021-12-03 08:58:44 524
原创 递归----八皇后92解
#include<iostream> using namespace std; struct Mar { int arr[9][9] = {0}; }; int count = 0; void eightQueen(int row, Mar Copy) { if(row == 1){ for(int i = 1; i<=8; i++){ if(Copy.arr[row][i] == 3){} ...
2021-12-03 08:57:40 758
原创 链串---------
#include<iostream> using namespace std; #define dataType char struct node { dataType ch; node* next; node* prior; }; class Link_String { private: public: node* head; int lenth; node* literator; Link_String...
2021-12-01 21:58:10 102
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人