⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 geom_util.hpp

📁 The goal of this project is to explore the idea of point-based radiosity, which is a shooting radio
💻 HPP
字号:
#if !defined(BRL_GEOM_UTIL_HPP)
#define BRL_GEOM_UTIL_HPP
/*+-------------------------------------------------------------------
  Ben Landon
  CSCI E-235
  
  geom_util.hpp - Geometry utilities

  The intent is that this file is to contain utility 
  functions for handling problems in 2D and 3D geometry.
  
*/

/*+-------------------------------------------------------------------
  get_barycentric_parameters_2D

  Given the 2D coordinates of a point in the plane (x, y), 
  and three other points in the plane (x0, y0), (x1, y1), 
  and (x2, y2), figure out parameters t1 and t2 to express
  (x, y) in terms of the other three points.


*/
void get_barycentric_parameters_2D (float x,  float y,
				    float x0, float y0, 
				    float x1, float y1, 
				    float x2, float y2,
				    float& t1, float& t2);


#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -