#include <math.h>
Go to the source code of this file.
Definition at line 145 of file ipoints.h.
References ICOORD::xcoord, and ICOORD::ycoord.
00148 { 00149 ICOORD result; //output 00150 00151 result.xcoord = op1.xcoord * scale; 00152 result.ycoord = op1.ycoord * scale; 00153 return result; 00154 }
Scalar multiply of an ICOORD.
Definition at line 134 of file ipoints.h.
References ICOORD::xcoord, and ICOORD::ycoord.
00136 { 00137 ICOORD result; //output 00138 00139 result.xcoord = op1.xcoord * scale; 00140 result.ycoord = op1.ycoord * scale; 00141 return result; 00142 }
Cross product of 2 ICOORDS.
Definition at line 124 of file ipoints.h.
References ICOORD::xcoord, and ICOORD::ycoord.
Scalar multiply of an ICOORD.
Definition at line 161 of file ipoints.h.
References ICOORD::xcoord, and ICOORD::ycoord.
Rotate an ICOORD 90 degrees anticlockwise.
Definition at line 29 of file ipoints.h.
References ICOORD::xcoord, and ICOORD::ycoord.
00031 { 00032 ICOORD result; //output 00033 00034 result.xcoord = -src.ycoord; 00035 result.ycoord = src.xcoord; 00036 return result; 00037 }
Scalar product of 2 ICOORDS.
Definition at line 114 of file ipoints.h.
References ICOORD::xcoord, and ICOORD::ycoord.
Add 2 ICOORDS.
Definition at line 73 of file ipoints.h.
References ICOORD::xcoord, and ICOORD::ycoord.
Unary minus of an ICOORD.
Definition at line 43 of file ipoints.h.
References ICOORD::xcoord, and ICOORD::ycoord.
00045 { 00046 ICOORD result; //output 00047 00048 result.xcoord = -src.xcoord; 00049 result.ycoord = -src.ycoord; 00050 return result; 00051 }
Subtract 2 ICOORDS.
Definition at line 101 of file ipoints.h.
References ICOORD::xcoord, and ICOORD::ycoord.
Scalar divide of an ICOORD.
Definition at line 175 of file ipoints.h.
References ICOORD::xcoord, and ICOORD::ycoord.
00177 { 00178 ICOORD result; //output 00179 00180 result.xcoord = op1.xcoord / scale; 00181 result.ycoord = op1.ycoord / scale; 00182 return result; 00183 }
Scalar divide of an ICOORD.
Definition at line 190 of file ipoints.h.
References ICOORD::xcoord, and ICOORD::ycoord.