geom_util.hpp
来自「The goal of this project is to explore t」· HPP 代码 · 共 32 行
HPP
32 行
#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 + =
减小字号Ctrl + -
显示快捷键?