GAMES101
刷子c
这个作者很懒,什么都没留下…
展开
-
GAMES101-作业2
static bool insideTriangle(double x, double y, const Vector3f* _v){ // TODO : Implement this function to check if the point (x, y) is inside the triangle represented by _v[0], _v[1], _v[2] Eigen::Vector2f p; p << x, y; Eigen::Vector2f AB原创 2022-01-24 19:51:15 · 527 阅读 · 0 评论 -
GAMES101-作业0
#include<cmath>#include<eigen3/Eigen/Core>#include<eigen3/Eigen/Dense>#include<iostream>int main(){ // Basic Example of cpp std::cout << "Example of cpp \n"; float a = 1.0, b = 2.0; std::cout << a &原创 2022-01-21 15:57:43 · 644 阅读 · 0 评论 -
GAMES101-作业1
Eigen::Matrix4f get_model_matrix(float rotation_angle){ Eigen::Matrix4f model = Eigen::Matrix4f::Identity(); // TODO: Implement this function // Create the model matrix for rotating the triangle around the Z axis. // Then return it. r原创 2022-01-24 12:53:18 · 151 阅读 · 0 评论