Changeset 13919
- Timestamp:
- Jun 20, 2007, 10:33:17 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psVectorSmooth.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psVectorSmooth.c
r13918 r13919 27 27 PS_ASSERT_FLOAT_LARGER_THAN(sigma, 0.0, NULL); 28 28 PS_ASSERT_FLOAT_LARGER_THAN(Nsigma, 0.0, NULL); 29 30 if (output == input) { 31 psError(PS_ERR_BAD_PARAMETER_VALUE, true, "Cannot smooth vector in-place."); 32 return false; 33 } 29 34 30 35 // relevant terms … … 118 123 PS_ASSERT_INT_POSITIVE(size, NULL); 119 124 125 if (output == input) { 126 psError(PS_ERR_BAD_PARAMETER_VALUE, true, "Cannot smooth vector in-place."); 127 return false; 128 } 129 120 130 long num = input->n; // Number of elements 121 131 output = psVectorRecycle(output, num, input->type.type);
Note:
See TracChangeset
for help on using the changeset viewer.
