<commit_before>#pragma once

#include <polar/component/base.h>
#include <polar/property/integrable.h>

namespace polar { namespace component {
	class position : public base {
		template<typename T> using integrable = support::integrator::integrable<T>;
	public:
		integrable<Point3> pos;
		position() : pos(Point3(0, 0, 0)) {}
		position(const Point3 pos) : pos(pos) {
			add<property::integrable>();
			get<property::integrable>().lock()->add(&this->pos);
		}
	};
} }<commit_msg>Unify position component ctors<commit_after>#pragma once

#include <polar/component/base.h>
#include <polar/property/integrable.h>

namespace polar { namespace component {
	class position : public base {
		template<typename T> using integrable = support::integrator::integrable<T>;
	public:
		integrable<Point3> pos;
		position(const Point3 pos = Point3(0)) : pos(pos) {
			add<property::integrable>();
			get<property::integrable>().lock()->add(&this->pos);
		}
	};
} }
{'fraction_non_alphanumeric': 0.16, 'fraction_numerical': 0.010526315789473684, 'mean_word_length': 5.513698630136986, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3203623', 'n_tokens_mistral': 330, 'n_tokens_neox': 303, 'n_words': 64}