?? inside.tri.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 + -