Lines Matching defs:pt
21 pt[0] = 0.0;
22 pt[1] = 0.0;
23 pt[2] = 1.0;
34 pt[0] = g_ascii_strtod(coords[0], NULL);
35 pt[1] = g_ascii_strtod(coords[1], NULL);
36 pt[2] = g_ascii_strtod(coords[2], NULL);
42 if (fabs(pt[2]) < 1E-6 || pt[2] == 1.0)
44 pt[0] /= pt[2];
45 pt[1] /= pt[2];
46 pt[2] = 1.0;
51 if (fabs(pt[2]) < epsilon) {
54 return Geom::Point (pt[0]/pt[2], pt[1]/pt[2]);
60 os << pt[0] << " : "
61 << pt[1] << " : "
62 << pt[2];
68 pt[0] = 0.0;
69 pt[1] = 0.0;
70 pt[2] = 0.0;
71 pt[3] = 1.0;
83 pt[0] = g_ascii_strtod(coords[0], NULL);
84 pt[1] = g_ascii_strtod(coords[1], NULL);
85 pt[2] = g_ascii_strtod(coords[2], NULL);
86 pt[3] = g_ascii_strtod(coords[3], NULL);
91 if (fabs(pt[3]) < 1E-6 || pt[3] == 1.0)
93 pt[0] /= pt[3];
94 pt[1] /= pt[3];
95 pt[2] /= pt[3];
96 pt[3] = 1.0;
102 os << pt[0] << " : "
103 << pt[1] << " : "
104 << pt[2] << " : "
105 << pt[3];