Changeset 658 for cpp/frams/model/geometry/geometryutils.cpp
- Timestamp:
- 04/24/17 03:14:21 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/model/geometry/geometryutils.cpp
r375 r658 9 9 double GeometryUtils::pointPosition(const int pointIndex, const int numberOfPoints) 10 10 { 11 return pointIndex / (numberOfPoints-1.0); 11 if (numberOfPoints == 1) 12 return 0; 13 else 14 return pointIndex / (numberOfPoints-1.0); 12 15 } 13 16
Note: See TracChangeset
for help on using the changeset viewer.