上一页 1 2 3 4 5 6 ··· 12 下一页
摘要: 完成函数static bool insideTriangle(): 测试点是否在三角形内。 一段优雅的easy代码,没什么好说的。(但是需要修改这里传入的xy的类型为float,默认为int是想让我通过修改返回值的方式来实现MSAA:例如返回一个int值,这里传入单个像素坐标后在insideTria 阅读全文
posted @ 2024-02-26 00:16 七星易 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 本次作业的任务是填写一个旋转矩阵和一个透视投影矩阵。给定三维下三个 点 v0(2.0, 0.0, −2.0), v1(0.0, 2.0, −2.0), v2(−2.0, 0.0, −2.0), 你需要将这三个点的坐 标变换为屏幕坐标,并在屏幕上绘制出对应的线框三角形 (在代码框架中,我们 已经提供了 阅读全文
posted @ 2024-02-22 23:51 七星易 阅读(11) 评论(1) 推荐(0) 编辑
摘要: 给定一个点 P=(2,1), 将该点绕原点先逆时针旋转 45 ◦,再平移 (1,2), 计算出 变换后点的坐标(要求用齐次坐标进行计算)。 作业解答: #include<cmath> #include<eigen3/Eigen/Core> #include<eigen3/Eigen/Dense> # 阅读全文
posted @ 2024-02-20 18:50 七星易 阅读(32) 评论(0) 推荐(0) 编辑
摘要: package main /* #include <stdio.h> void processInt2DArray(int* arr, int rows, int cols) { for (int i = 0; i < rows; i++) { for (int j = 0; j < cols; j 阅读全文
posted @ 2023-12-07 20:48 七星易 阅读(28) 评论(0) 推荐(0) 编辑
摘要: friend(友元):相同Class的各个objects互为friends(友元) class complex{ public: complex (double r = 0, double I = 0) : re (r), im (i) { } //一个对象的成员函数可以调用另一个对象的私有成员变量 阅读全文
posted @ 2023-09-20 16:52 七星易 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 1. 本地下载Openssl(默认安装即可,最后一个将打赏取消勾选) Win32/Win64 OpenSSL Installer for Windows - Shining Light Productions (slproweb.com) 2. 配置环境变量 3. 验证本地Openssl安装 cmd 阅读全文
posted @ 2023-09-05 16:09 七星易 阅读(377) 评论(0) 推荐(0) 编辑
摘要: 1. 安装MQTT的简易服务器集成环境EMQX $wget https://www.emqx.com/zh/downloads/broker/5.1.6/emqx-5.1.6-ubuntu18.04-amd64.deb $sudo apt install ./emqx-5.1.6-ubuntu18. 阅读全文
posted @ 2023-09-05 16:02 七星易 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 问题描述:在安装了Qt 5.9.8,vs 2022, QT VS Tool 2022并配置好环境变量之后创建Qt项目时无法创建,提示至少需要注册一个Qt版本到Qt VS Tools的Qt Options 解决方法: 1.重新打开一个可以创建的C++ vs文件,在上方菜单栏中“工具-选项-找到Qt的v 阅读全文
posted @ 2023-05-05 20:44 七星易 阅读(687) 评论(0) 推荐(0) 编辑
摘要: 知识来源:https://www.imooc.com/learn/1305 二进制在计算机中的意义: 计算机如何存负整数: 原码:符号位变为1 反码:除符号位其余取反 补码:=反码+1 是-7的表示方法,计算机用补码来存储负数,这样可以使得负数的加减法操作和正数一样 计算机中存储浮点数: 首先是10 阅读全文
posted @ 2022-12-18 15:59 七星易 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 知识来源:https://www.imooc.com/learn/1304 https://www.runoob.com/cplusplus/cpp-tutorial.html 编程第一步导入头文件: #include <stdio.h> std=standard io= into out #inc 阅读全文
posted @ 2022-12-07 22:55 七星易 阅读(717) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 12 下一页