inochi2d.core.math.simd.vector

Inochi2D Vector SIMD Helpers

Members

Functions

simd_calcbounds
rect simd_calcbounds(vec2[] mesh)

Calculates the bounding box of a mesh, for larger meshes SIMD is used to optimize this operation.

simd_mul
void simd_mul(vec2[] mesh, mat4 matrix)

Multiplies all of the vertices in a mesh with a given matrix. For larger meshes this operation is done with SIMD.

simd_mul_weight
void simd_mul_weight(vec2[] mesh, float[] weights)

Multiplies all vertices in a given mesh with the given weights.

simd_offset
void simd_offset(vec2[] mesh, vec2 offset)

Offsets all of the coordinates in the given mesh with the given offset. For larger meshes, the offset is done with SIMD.

Meta

Authors

Luna Nielsen