当前位置:网站首页>[TA frost wolf \u may- hundred people plan] 1.2.1 vector basis
[TA frost wolf \u may- hundred people plan] 1.2.1 vector basis
2022-07-01 03:47:00 【zczplus】
【TA- Frost Wolf _may-《 Hundred people plan 》】1.2.1 Vector basis
- 1.2.1.1 vector
- 1.2.1.2 Calculation
- Calculation of scalar and vector
- The module length of the vector
- Normalized vectors
- Addition and subtraction of vectors
- Calculate the distance between two points
- Dot product operation of vector
- Projection
- Lambert illumination model
- The cross product of vectors
- Determine the size and direction of cross product
1.2.1.1 vector
The definition of vector
- A vector is a directed line segment with size and direction
- The vector has no position
- The arrow of the vector is the end of the vector , The tail of the vector is the beginning of the vector
- The displacement described by the vector can be considered as a displacement sequence parallel to the axis
- Representation of vectors : The three dimensional (ax,ay,az) for example (1,-5,7)
Vector and scalar
vector : There is size and direction
Scalar : Only size, no direction
Vectors and points
The mathematical form of a vector is the same as that of a point , But the geometric meaning is completely different
spot : Only location information
vector : No location information , But there is actual size and orientation information
contact : Any point can be regarded as a vector starting from the origin
Zero vector
- The zero vector is the only vector of zero size
- The zero vector is the only quantity that has no direction
- The zero vector is not a point , Because the zero vector doesn't define a position
- Zero vector means that there is no unique , Just like zero scalar means no quantity
1.2.1.2 Calculation
Calculation of scalar and vector
- No addition
- No subtraction
- Multiplication : Multiply each component of the vector by the scalar
- division : Equivalent to multiplying the reciprocal of scalar
The module length of the vector
- Calculation formula :||v|| = √vx²+vy²
- Geometric interpretation : Construct a right triangle with a vector as the hypotenuse , The size of the vector shown ( Die length ) It can be obtained from Pythagorean theorem
Normalized vectors
- Normalized vectors ( Unit vector ) The module length is 1 Vector .( Just know the direction , application : normal )
- Algorithm : Divide the components of the vector by the module length
Addition and subtraction of vectors
- Calculation formula :(ax,ay)±(bx,by) = (ax+bx,ay+by)
- The addition and subtraction of corresponding positions
- Geometric interpretation : Superposition of displacements in all directions
Calculate the distance between two points
- Calculation formula :(a,b)= ||b-a|| = √(bx-ax)²+(by-ay)²
- And so on in higher space
- Range of application : Calculate the distance from one vector to another (a To b The displacement vector of is b-a)
Dot product operation of vector
- Calculation formula :(ax,ay)·(bx,by)=(axbx+ayby)
- Vector point multiplication is the sum of component products , Satisfying the commutative law
- Geometric interpretation : The result of point multiplication describes the of two vectors “ be similar ” Degree of , The greater the result of dot multiplication , The smaller the angle , The closer the two vectors are .
Projection
- The projection length of one vector on another vector
Lambert illumination model
Lambert illumination model is the simplest illumination model used to simulate diffuse reflection .
set up : The opposite direction of the illumination direction is L vector , The discovery direction is N vector , Then there are :
- L And N In the same direction :Nor·Light = 1( Pure bright )
- L And N When the direction is opposite :Nor·Light = -1( Pure dark )
- L And N When the direction is vertical :Nor·Light = 0( Pure dark )
The cross product of vectors
Only for 3D vector , The calculation formula is shown in the figure :
Does not satisfy the law of exchange , But it satisfies the inverse commutative law :
a X b ≠ b X a
a X b = - (b X a)
- Vector cross multiplication is the cross multiplication and subtraction of components , The result is a vector .
- Geometric interpretation : The vector obtained by cross multiplication is perpendicular to the original two vectors .
Determine the size and direction of cross product
The calculation formula is shown in the figure :
The direction follows the left-handed coordinate system , When the starting points coincide , from a The vector turns b vector , The direction of the thumb is the direction of the result .
边栏推荐
- 165. 比较版本号
- Leetcode:剑指 Offer 59 - I. 滑动窗口的最大值
- [shortcut key]
- How keil displays Chinese annotations (simple with pictures)
- 程序员女友给我做了一个疲劳驾驶检测
- 使用selenium自动化测试工具爬取高考相关院校专业招生分数线及排名情况
- Test function in pychram
- 187. 重复的DNA序列
- Millet College wechat scanning code login process record and bug resolution
- 小程序容器技术与物联网IoT的结合点
猜你喜欢

jeecgboot输出日志,@Slf4j的使用方法

Complete knapsack problem

The difference between MFC for static libraries and MFC for shared libraries

Implement pow (x, n) function

复习专栏之---消息队列
![[nine day training] content III of the problem solution of leetcode question brushing Report](/img/7e/1e76181e56ef7feb083f9662df71c7.jpg)
[nine day training] content III of the problem solution of leetcode question brushing Report

Research on target recognition and tracking based on 3D laser point cloud

Future of NTF and trends in 2022

Random seed torch in deep learning manual_ seed(number)、torch. cuda. manual_ seed(number)

Feature pyramid networks for object detection
随机推荐
The combination of applet container technology and IOT
Pyramid Scene Parsing Network【PSPNet】论文阅读
[reach out to Party welfare] developer reload system sequence
171. Excel 表列序号
205. isomorphic string
Addition without addition, subtraction, multiplication and division
Leetcode:829. Sum of continuous integers
389. 找不同
程序员女友给我做了一个疲劳驾驶检测
How do I use Google Chrome 11's Upload Folder feature in my own code?
快速筛选打卡时间日期等数据:EXCEL筛选查找某一时间点是否在某一时间段内
The preorder traversal of leetcode 144 binary tree and the expansion of leetcode 114 binary tree into a linked list
165. 比较版本号
187. 重复的DNA序列
165. compare version numbers
FCN全卷積網絡理解及代碼實現(來自pytorch官方實現)
Grid system in bootstrap
[nine day training] content III of the problem solution of leetcode question brushing Report
[deep learning] activation function (sigmoid, etc.), forward propagation, back propagation and gradient optimization; optimizer. zero_ grad(), loss. backward(), optimizer. Function and principle of st
Online public network security case nanny level tutorial [reaching out for Party welfare]