![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数学知识
小姚同志
这个作者很懒,什么都没留下…
展开
-
多大范围内的整数可以用浮点数精确表示
转载自https://airguanz.github.io/2019/11/20/float-to-int-exact-range.html我们知道,IEEE 754中的浮点数是对实数的近似表示,其取值密度在越远离0的地方越稀疏。那么,究竟在多远处浮点数会无法精确地cast到整数呢?本文对此进行了实验和分析。实验代码很简单:int main(){ for(int i = 0; i < std::numeric_limits<int>::max(); ++..转载 2022-02-27 21:23:31 · 1557 阅读 · 0 评论 -
Vector Calculus: Understanding the Cross Product
Vector Calculus: Understanding the Cross ProductTaking two vectors, we can write every combination of components in a grid:This completed grid is theouter product, which can be separated int...原创 2020-03-31 18:02:13 · 471 阅读 · 0 评论 -
OpenGL: 你不知道的左右手坐标系
左右手坐标系众所周知,OpenGL使用的是右手坐标系,而Direct3D使用的是左手坐标系。除了上面Z轴的方向不一样外,左右手坐标系的还有其他区别:正向旋转方向:在左手系中用Left-Hand Rule判别,正方向是顺时针方向。在右手系中,用Right-Hand Rule判别,是逆时针方向。叉积的方向:在右手坐标系中,叉积的方向通过Right-Hand Rule确定,而在...转载 2020-03-29 20:41:07 · 620 阅读 · 0 评论 -
求三角形和多边形的面积
AREA OF A MESH FACE IN C# IN GRASSHOPPERJames Ramsden | 26 March 2015 | Grasshopper | No CommentsAnother quick script for handing meshes – this time to find the area of a mesh face.This script...原创 2018-11-19 13:24:34 · 266 阅读 · 0 评论 -
有关dx hlsl shader中矩阵存储方式的一些总结
调用XMMatrixTranslation(2.0f, 3.0f, 4.0f)生成的矩阵为:1.0, 0.0, 0.0, 0.0,0.0, 1.0, 0.0, 0.0,0.0, 0.0, 1.0, 0.0,2.0, 3.0, 4.0, 1.0,其在内存中的表示为连续的 16 个元素,记录顺序为行从上到下,行内元素从左到右( row_major 排列方式 )。 变换向量...原创 2019-04-23 23:20:57 · 740 阅读 · 0 评论