📄 qcctriangle.3
字号:
.TH QCCTRIANGLE 3 "QCCPACK" "".SH NAMEQccTrianglePrint,QccTriangleBoundingBox,QccTrianglePointInside,QccTriangleCreateAffineTransform\- miscellaneous 2D triangle routines.SH SYNOPSIS.B #include "libQccPack.h".sp.BI "void QccTrianglePrint(const QccTriangle *" triangle );.br.sp.BI "int QccTriangleBoundingBox(const QccTriangle *" triangle ", QccPoint *" box_max ", QccPoint *" box_min );.br.sp.BI "int QccTrianglePointInside(const QccTriangle *" triangle ", const QccPoint *" point );.br.sp.BI "int QccTriangleCreateAffineTransform(const QccTriangle *" triangle1 ", const QccTriangle *" triangle2 ", QccMatrix " transform );.SH DESCRIPTIONQccPack provides the.B QccTriangledata structure to represent a triangle in the 2D plane..SH "DATA STRUCTURE".B QccTriangledata structure consists of three points and is defined as:.RS.nftypedef struct{ QccPoint vertices[3];} QccTriangle;.fi.RE.LPThe fields of.B QccTriangleare as follows:.TP.I verticesAn array of the three vertices of the triangle..SH "ROUTINES".BR QccTrianglePrint()prints the three vertices of.I triangleto.BR stdout ..LP.BR QccTriangleBoundingBox()determines the bounding box of.IR triangle .The bounding box is defined as the smallest rectangle that enclosesall three vertices of.IR triangle ..BR QccTriangleBoundingBox()returns the bounding box by specifying thepoints of the upper-left.RI ( box_max )and lower-right.RI ( box_min )corners of the bounding box..LP.BR QccTrianglePointInside()returns 1 if.IR pointlies within the interior of.IR triangle(i.e.,.I triangleencloses.IR point ),and 0 if.IR pointis outside of.IR triangle ..LP.BR QccTriangleCreateAffineTransform()determines an affine transform,.IR affine_transform ,that maps points in.I triangle1into.IR triangle2 ..IR affine_transformshould be a 3 x 3 matrixallocated prior to calling.BR QccTriangleCreateAffineTransform().SH "SEE ALSO".BR QccPoint (3),.BR QccPack (3)Y. Altunbasak, A. M. Tekalp, and G. Bozdagi,"Two-Dimensional Object-based Coding Using a Content-based Meshand Affine Motion Parameterization," in.IR "Proceedings of the International Conference on Image Processing" ,Washington, DC, October 1995, pp. 394 397..SH AUTHORCopyright (C) 1997-2009 James E. Fowler.\" The programs herein are free software; you can redistribute them an.or.\" modify them under the terms of the GNU General Public License.\" as published by the Free Software Foundation; either version 2.\" of the License, or (at your option) any later version..\" .\" These programs are distributed in the hope that they will be useful,.\" but WITHOUT ANY WARRANTY; without even the implied warranty of.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the.\" GNU General Public License for more details..\" .\" You should have received a copy of the GNU General Public License.\" along with these programs; if not, write to the Free Software.\" Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -