tavimori
最近创建
  • 最近创建
  • 最早创建
  • 最近更新
  • 最早更新
全部1
Forked0
收藏0
最近修改于 1 个月前
NCLab 招新测试
1 个文件
0 forks
0 条评论
0 收藏
1
2
3
4
5
6
7
8
9
10
// This is a simplified code snippet from NCLab's project, please read and try to understand thse code.
// The code is written in NCLab style pseudocode

// Notice: you can simply think "number" as real number, and matrix/vector are formed by these numbers.

// simply do x[] = y * x[]
function mulVec(vector x, number y);

// simply do z[] = z[] + y * x[]   (z,x are vector, y is a scalor)
function addMulVec(vector z, vector x, number y);