80:764381756899 | 81:62373840e33a |
---|---|
85 { | 85 { |
86 // 0 1 2 3 | 86 // 0 1 2 3 |
87 // -> 2 1 0 3 | 87 // -> 2 1 0 3 |
88 std::swap(this->points[0], this->points[2]); | 88 std::swap(this->points[0], this->points[2]); |
89 } | 89 } |
90 | |
91 int ldraw::Quadrilateral::numPoints() const | |
92 { | |
93 return 4; | |
94 } | |
95 | |
96 const glm::vec3& ldraw::Quadrilateral::getPoint(int index) const | |
97 { | |
98 if (index >= 0 and index < 4) | |
99 { | |
100 return points[index]; | |
101 } | |
102 else | |
103 { | |
104 return ldraw::ColoredObject::getPoint(index); | |
105 } | |
106 } |