-
适用于 Pygame 的 Python 线交叉
翻译 maninwest@Codeforge 作者:raildude@CodeProject计算 2 D 线段交点(如存在)的算法这是种应用代数的练习题, (尤其是方程 y = mx + b, 所谓的线性方程的斜截式).背景我有个 Python 的 3d 查看应用程序,使用 Pygame 做 UI。 它有线框显示和原始的"隐藏表面移除"选项。我想添加一个隐藏线移除的选项,因为Pygame 好像不支持 "空心多边形" 绘制方法. 我想此代码可能是向该方向迈出的一步。稍后,我发现 MeshLab 可以提供我想要的功能..使用代码你需要安装 Python和 Pygame。或者,你可以提取四个函数 (slope(), y_intercept(), intersect() & segment_intersect()) 并在合适的地方使用。
- 2022-03-15 12:00:57下载
- 积分:1
-
program sudoku
我问这个问题是为了确定哪种内存分配算法在性能关键型应用程序(如游戏引擎或嵌入式应用程序)中提供更好的结果。结果实际上取决于记忆碎片的百分比和记忆请求的时间决定性。
- 2023-01-16 03:45:04下载
- 积分:1
-
VB生成三角网
VB源代码生成的三角网,即狄罗尼三角网。可以通过点击程序界面自动生成一系列的不规则三角网
- 2022-12-06 21:55:03下载
- 积分:1
-
Procedures are given deformation QR method with real symmetric triangular matrix...
程序中给出了用变形QR方法计算实对称三角阵的全部特征值与相应的向量-Procedures are given deformation QR method with real symmetric triangular matrix of all eigenvalues with the corresponding vector
- 2022-12-29 05:15:03下载
- 积分:1
-
opencv_orb 检测算法
根据前面surf简化版的结构,重新把ORB检测的代码给简化以下,发现虽然速度一样,确实能省好多行代码,关键是有
BruteForceMatchermatcher的帮忙,直接省的写了一个函数;
NB类型:class gpu::BruteForceMatcher_GPU
- 2022-02-03 07:04:10下载
- 积分:1
-
AIRtools_matlab
资源描述% UTV Tools.
% Version 1.0 11-June-11
%
% Iterative ART Methods.
% kaczmarz - Kaczmarz"s method (often referred to as ART).
% randkaczmarz - Randomized Kaczmarz method.
% symkaczmarz - Symmetric Kaczmarz method.
%
% Iterative SIRT Methods.
% cav - Component Averaging (CAV) method.
% cimmino - Cimmino"s projection method.
% drop - Diagonally Relaxed Orthogonal Projections (DROP) method.
% landweber - The classical Landweber method.
% sart - Simultaneous Algebraic Reconstruction Technique (SART) method.
%
% Training Routines.
% trainDPME - Training method for the
- 2023-06-20 04:35:03下载
- 积分:1
-
基于稀疏的人脸识别
基于稀疏的人脸识别,数据库为ORL,共40人,每人10幅图片,可以随机选择训练样本,剩下为测试样本。选择20次结果的平均值为最终结果。
- 2022-08-20 17:18:48下载
- 积分:1
-
关于大数运算的加 减 乘 除 模 等运算 运用了libtommath库的算法...
关于大数运算的加 减 乘 除 模 等运算 运用了libtommath库的算法-Addition and subtraction operations on large numbers such as multiplication and division operation mode using the algorithm library libtommath
- 2022-01-26 14:38:08下载
- 积分:1
-
fortan数值计算的源代码,如空间光滑出来,非线性拟合等
fortan数值计算的源代码,如空间光滑出来,非线性拟合等-fortan numerical calculation of the source code, such as spatial smoothing out non-linear fitting, etc.
- 2022-06-30 14:42:45下载
- 积分:1
-
A very powerful method of steepest descent algorithm for the C++ program, the re...
很强大的最速下降法的C++算法程序,结果也比较精确-A very powerful method of steepest descent algorithm for the C++ program, the results more precise
- 2022-06-17 04:18:10下载
- 积分:1