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

📄 inside.tri.lib

📁 su 的源代码库
💻 LIB
字号:
INSIDE -  Is a vertex or point inside a circum circle, etc. of a triangulated          modelinCircum	determine whether or not a vertex is inside a circum circleinCircumTri	determine whether or not a vertex is inside a circum circle of                 a trianglein3Vertices	determine whether or not a vertex is inside triangle (v1,v2,v3)inTri		determine whether or not a vertex is inside a triangle Function Prototypes:int inCircum (float x, float y, float xc, float yc, float rs);int inCircumTri (float x, float y, Tri *t);int in3Vertices (float x, float y, Vertex *v1, Vertex *v2, Vertex *v3);int inTri (float x, float y, Tri *t);inCircum:Input:x	x-coordinate of vertexy	y-coordinate of vertexxc	x-coordinate of center of circumcircleyc	y-coordinate of center of circumcirclers	radius^2 of circumcircleReturns:1	if x,y inside of circumcircle0	otherwiseNotes:A vertex exactly on the edge of a circumcircle is taken as being outsideinCircumTri:Input:x	x-coordinate of vertexy	y-coordinate of vertext	pointer to TriReturns:1	if x,y inside of circumcircle of a triangle0	otherwiseNotes:A vertex exactly on the edge of a circumcircle is taken as being outsidein3Vertices:Input:x	x-coordinate of vertexy	y-coordinate of vertexv1	pointer to first Vertexv2	pointer to second Vertexv3	pointer to third VertexReturns:1	if x,y inside of v1,v2,v30	otherwiseNotes:A vertex exactly on an edge of the triangle is taken as being insideinTri:Input:x	x-coordinate of vertexy	y-coordinate of vertext	pointer to TriReturns:1	if x,y inside a triangle0	otherwiseNotes:A vertex exactly on the edge of a triangle is insideAuthor:  Dave Hale, Colorado School of Mines, 06/04/91

⌨️ 快捷键说明

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