Skip to contents

Applies multiple transformations to vertices in batch. Useful for animating object positions across frames.

Usage

cpp_batch_transform_vertices(vertices, translations, rotations, scales)

Arguments

vertices

2 x N matrix of base vertex coordinates

translations

N_frames x 2 matrix of translations

rotations

N_frames vector of rotation angles

scales

N_frames x 2 matrix of scale factors

Value

3D array of transformed vertices (2 x N x N_frames)