当前位置:网站首页>Personal notes of graphics (1)
Personal notes of graphics (1)
2022-07-07 16:30:00 【qq_ fifty-seven million two hundred and fifty-one thousand thre】
vector :AB=B-A Indicates direction and length , The vector can move at will , After moving, it is still the same vector
Unit vector : vector / The length of the vector ( It can mean direction )
Vector addition :A+B Quadrilateral rule

Triangle rule ( Put the ends together )

The default vector is column vector Transpose to row vector

//------------------------------------------------------------------------------------------------------------------//
Vector point multiplication :( Give the vector a value , Give me two vectors, and I can use the formula to calculate the included angle or the cosine of the included angle )

( If both vectors are unit vectors , Then their dot multiplication is directly the cosine of the included angle )
The nature of dot multiplication :

It is easier to express point multiplication in Cartesian coordinate system :

The use of dot multiplication : Projection

Ideas : requirement b Vector in a The projection in the direction , Then the projection must be along a Vectorial , in other words a^( A hat is expressed as a unit vector ) Multiply by a certain length , So find the length
Problem solving :b Vector and b The projected vector forms a right triangle , therefore b The vector of the projection is equal to b The length of the vector times cos angle ( Angle cosine )
Angle cosine =A and B Dot product of vector
Expansion of projection Calculate the vertical

The use of dot multiplication : Front and back
Dot multiplication is in the same direction Dot multiplication is in the negative opposite direction

The use of dot multiplication : Whether the direction is close ( The principle is the same as the above )
The most important application :
Specular reflection :
Check the light vector of specular reflection Whether it is related to the vector of the angle of view Close to
//------------------------------------------------------------------------------------------------------------------//
Vector cross product :

Judge the result of cross multiplication : Right-hand rule ( It is divided into spiral rule and three specified rules , This refers to the spiral rule )
You can hold it with your right hand and have a try

(a Cross riding b The resulting vector is related to b Cross riding a The resulting vector is in the opposite direction - Yellow line )
Some small laws of triangular coordinate system

Some properties of cross product :

(0 It means the length is 0 Vector , Not numbers 0)
Matrix of vector cross multiplication :

The function of cross product :
1. Decide left and right

Sure b Cross riding a If the vector is z Negative then a stay b The right side of the Is regular a stay b The left side of the
2. Determine the inside and outside

Judge p Whether it is inside the triangle
Anticlockwise or anticlockwise cross multiply ( such as :ab*ap bc*bp ca*cp)
In the same direction
//------------------------------------------------------------------------------------------------------------------//
The advantage of defining a rectangular coordinate system is that any vector can be decomposed into coordinate axes
You can put any vector (p vector ) It is decomposed into three axes (u v w): With projection

//------------------------------------------------------------------------------------------------------------------//
matrix :

The product of matrices ( The premise of matrix multiplication is m*n n*p n==n)
For example, three rows and two columns and Two lines and three columns

skill :
How to get The result of two rows and four columns Find the number in the second row in the first matrix 5 2
The second matrix finds the number in the fourth column 4 3
Then multiply these two groups of points (5*4+2*3=26)

Matrix properties :

The distribution rate of associative law has
There is no exchange law
Matrix operations
A matrix is multiplied by a vector :

The transpose of the matrix :

Unit matrix ( Diagonal matrix )

The inverse of the unique action matrix a and a Multiply the inverse matrix of Can get the identity matrix
Dot product of matrix :

Cross multiplication of matrices

边栏推荐
- Laravel 服务提供者实例教程 —— 创建 Service Provider 测试实例
- SPI master RX time out interrupt
- The unity vector rotates at a point
- 目标跟踪常见训练数据集格式
- Performance comparison of tidb for PostgreSQL and yugabytedb on sysbench
- 3000 words speak through HTTP cache
- The inevitable trend of the intelligent development of ankerui power grid is that microcomputer protection devices are used in power systems
- Excessive dependence on subsidies, difficult collection of key customers, and how strong is the potential to reach the dream of "the first share of domestic databases"?
- PHP realizes wechat applet face recognition and face brushing login function
- Spark Tuning (III): persistence reduces secondary queries
猜你喜欢

You Yuxi, coming!

无法将“pip”项识别为 cmdlet、函数、脚本文件或可运行程序的名称

华东师大团队提出,具有DNA调控电路的卷积神经网络的系统分子实现

"The" "PIP" "entry cannot be recognized as the name of a cmdlet, function, script file, or runnable program."

Description of vs common shortcut keys

Multiplication in pytorch: mul (), multiply (), matmul (), mm (), MV (), dot ()

统计学习方法——感知机

Prediction - Grey Prediction

Talk about the cloud deployment of local projects created by SAP IRPA studio

SysOM 案例解析:消失的内存都去哪了 !| 龙蜥技术
随机推荐
Is it reliable to open an account on Tongda letter with your mobile phone? Is there any potential safety hazard in such stock speculation
Prediction - Grey Prediction
Use moviepy Editor clips videos and intercepts video clips in batches
The team of East China Normal University proposed the systematic molecular implementation of convolutional neural network with DNA regulation circuit
企业级日志分析系统ELK
47_Opencv中的轮廓查找 cv::findContours()
47_ Contour lookup in opencv cv:: findcontours()
121. The best time to buy and sell stocks
23. 合并K个升序链表-c语言
What about the pointer in neural network C language
Leetcode-136- number that appears only once (solve with XOR)
Odoo integrated plausible embedded code monitoring platform
Leetcode-136-只出现一次的数(用异或来解答)
asyncio 概念和用法
torch. Numel action
【Vulnhub靶场】THALES:1
Talk about the cloud deployment of local projects created by SAP IRPA studio
Laravel5.1 路由 -路由分组
Shader_ Animation sequence frame
记一次项目的迁移过程