blob: 43755553d85f989ea51731b3b8fe15178612920e [file] [log] [blame]
#include "rive/shapes/vertex.hpp"
using namespace rive;
Vec2D Vertex::renderTranslation() {
if (hasWeight()) {
return m_Weight->translation();
}
return Vec2D(x(), y());
}
void Vertex::xChanged() { markGeometryDirty(); }
void Vertex::yChanged() { markGeometryDirty(); }
void Vertex::deform(const Mat2D& worldTransform, const float* boneTransforms) {
Weight::deform(x(),
y(),
m_Weight->indices(),
m_Weight->values(),
worldTransform,
boneTransforms,
m_Weight->translation());
}