File: matrix_transform_2d.h

package info (click to toggle)
python-pyglm 2.8.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,008 kB
  • sloc: cpp: 53,029; python: 3,683; makefile: 7
file content (22 lines) | stat: -rw-r--r-- 726 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once

#include "../function_generator_macros.h"

PyGLM_MAKE_GLM_FUNC_M3N__tfF(shearX)

PyGLM_MAKE_GLM_FUNC_M3N__tfF(shearY)

PyDoc_STRVAR(shearX_docstr,
	"shearX(m: mat3x3, y: number) -> mat3x3\n"
	"	Builds an horizontal (parallel to the x axis) shear 3 x 3 matrix.\n"
	"	`m` is the input matrix multiplied by this translation matrix"
);
PyDoc_STRVAR(shearY_docstr,
	"shearY(m: mat3x3, x: number) -> mat3x3\n"
	"	Builds a vertical (parallel to the y axis) shear 3 x 3 matrix.\n"
	"	`m` is the input matrix multiplied by this translation matrix"
);

#define MATRIX_TRANSFORM_2D_METHODS \
{ "shearX", (PyCFunction)shearX_, METH_VARARGS, shearX_docstr }, \
{ "shearY", (PyCFunction)shearY_, METH_VARARGS, shearY_docstr }