# Transform2D struct

Namespace: [Grasshopper2.Imaging.Raycasting](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.imaging.raycasting.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public struct Transform2D
```

Represents a transformation matrix for two-dimensional shader coordinate transformations.

## Properties

- [IsIdentity](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.transform2d/isidentity.md): Gets whether this transformation is the identity matrix.

## Methods

- [Apply](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.transform2d/apply.md): Transform a coordinate pair.
- [Chain](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.transform2d/chain.md): (static) Chain a set of transformations.
- [Change](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.transform2d/change.md): (static) Create a change-basis transformation centered on the world origin.
- [CrossProd](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.transform2d/crossprod.md): (static) Compute the cross product of two vectors.
- [CrossSign](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.transform2d/crosssign.md): (static) Compute the sign of the cross product of two vectors.
- [Move](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.transform2d/move.md): (static) Create a new move (or translation) transform.
- [Rotate](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.transform2d/rotate.md): (2 overloads, static) Create a rotation matrix.
- [Scale](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.transform2d/scale.md): (3 overloads, static) Create a uniform scaling transform.

## Operators

- [operator *](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.transform2d/op-multiply.md): (static) Multiply two matrices.
- [operator -](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.transform2d/op-unarynegation.md): (static) Create the inverse of a transform.
