nicemath:单头C ++数学库

时间:2021-04-24 06:23:26
【文件属性】:
文件名称:nicemath:单头C ++数学库
文件大小:14.97MB
文件格式:ZIP
更新时间:2021-04-24 06:23:26
C++ 介绍 nicemath是一个紧凑的单头C ++库,它为计算机图形学和游戏开发中经常遇到的基本线性代数运算提供数据类型和例程。 要使用该库,只需将放在C ++项目的包含路径内的任何位置。 用法 这不是通用的线性代数库。 它主要旨在帮助用户处理3D和2D仿射变换,四元数和基本矢量运算。 例如,如果您需要支持任意大而稀疏的矩阵,则应在别处查找。 例子 # include " nicemath.h " void vec_demo ( const nm::float4 &a, const nm::float4 &b) { // basic operations. const nm::float4 sum = a + b, dif = a - b, prd = a * b, // elementwise produc
【文件预览】:
nicemath-master
----nicemath.png(42KB)
----README.md(2KB)
----nicemath.h(37KB)
----DoxygenLayout.xml(6KB)
----doxyfile(120B)
----test()
--------nicetest.h(2KB)
--------test.cpp(16KB)
--------testdata()
--------matvecio.h(1KB)

网友评论