renamed pointsum, added vectorscaled