# shz_xmtrx_transform_point2_transpose

Source: https://sh4zam.com/api/xmtrx/shz_xmtrx_transform_point2_transpose/

```c
SHZ_INLINE shz_vec2_t shz_xmtrx_transform_point2_transpose(shz_vec2_t pt) SHZ_NOEXCEPT;
```

Transforms a 2D point by the transpose of XMTRX.

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `pt` | `shz_vec2_t` | Input 2D point to transform. |

## Returns

`pt` multiplied by XMTRX.

## Details

This routine is an efficient way to do a one-off multiplicaiton of `pt` by the transpose of the 4x4 submatrix held within XMTRX.

## Notes

- For transforming multiple 2D points by XMTRX's transpose, it's more efficient to perform batch processing like so: ```text shz_xmtrx_transpose() for(i in points)     out[i] = shz_xmtrx_transform_point2(in[i]); shz_xmtrx_transpose(); ```

## Naming and requirements

- `_transpose`: Operates with the transposed matrix (row-major input, or inverse-rotation use). ([Naming and Suffixes](https://sh4zam.com/concepts/naming-and-suffixes/))

## Availability

- **C++ equivalent:** none (call the C function from C++)
- **Type-generic form:** none
- **Back-ends:** SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- **Defined in:** [`sh4zam/shz_xmtrx.h:1121`](https://github.com/gyrovorbis/sh4zam/blob/6b22b851ad9ca109049f956dbbbecf7c519c959f/include/sh4zam/shz_xmtrx.h#L1121)
- **Module:** [XMTRX](https://sh4zam.com/api/xmtrx/), section "Transformations"

## See also

[`shz_xmtrx_transform_point2`](https://sh4zam.com/api/xmtrx/shz_xmtrx_transform_point2/), [`shz_xmtrx_transform_point3_transpose`](https://sh4zam.com/api/xmtrx/shz_xmtrx_transform_point3_transpose/), [`shz_xmtrx_transpose`](https://sh4zam.com/api/xmtrx/shz_xmtrx_transpose/), [`shz_mat4x4_transform_point2_transpose`](https://sh4zam.com/api/matrix/shz_mat4x4_transform_point2_transpose/)
