Home | History | Annotate | Download | only in smoke

Lines Matching refs:vec3

62     glm::vec3 pick() { return glm::vec3{red_(rng_), green_(rng_), blue_(rng_)}; }
79 current_.axis = glm::normalize(glm::vec3(x, y, z));
84 current_.matrix = glm::scale(glm::mat4(1.0f), glm::vec3(current_.scale));
96 virtual glm::vec3 evaluate(float t) = 0;
118 glm::vec3 evaluate(float t) {
130 segment_direction_ = glm::vec3(direction_(rng_), direction_(rng_), direction_(rng_));
144 glm::vec3 segment_start_;
145 glm::vec3 segment_direction_;
149 glm::vec3 unit_dir_;
150 glm::vec3 pos_;
156 CircleCurve(float radius, glm::vec3 axis) : r_(radius) {
157 glm::vec3 a;
177 glm::vec3 evaluate(float t) {
178 return (a_ * (glm::vec3(std::cos(t)) - glm::vec3(1.0f)) + b_ * glm::vec3(std::sin(t))) * glm::vec3(r_);
183 glm::vec3 a_;
184 glm::vec3 b_;
195 glm::vec3 Path::position(float t) {
209 current_.origin = glm::mod(current_.origin, glm::vec3(2.0f));
213 current_.origin = glm::vec3(origin(rng_), origin(rng_), origin(rng_));
227 glm::vec3 axis(dir(rng_), dir(rng_), dir(rng_));
252 type, glm::vec3(0.5f + 0.5f * (float)i / object_count), color.pick(), Animation(random_dev_(), scale),
270 glm::vec3 pos = obj.path.position(time);