# Maths.Maps class

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

```cs
public static class Maths.Maps
```

Utility class for mapping coordinates between various spaces.

## Methods

- [BarycentricToCartesian](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.maps/barycentrictocartesian.md): (2 overloads, static) Convert a two-dimensional barycentric coordinate into cartesian coordinates.
- [BarycentricToTrilinear](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.maps/barycentrictotrilinear.md): (2 overloads, static) Convert barycentric coordinates into trilinear coordinates.
- [BetweenIntervals](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.maps/betweenintervals.md): (static) Map a number from one numeric interval to another.
- [CartesianToBarycentric](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.maps/cartesiantobarycentric.md): (2 overloads, static) Convert a two dimensional cartesian coordinate into areal barycentric parameters.
- [CartesianToElliptic](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.maps/cartesiantoelliptic.md): (static) Convert a cartesian world coordinate into elliptic coordinates.
- [CartesianToSpherical](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.maps/cartesiantospherical.md): (2 overloads, static) Convert cartesian world coordinates into spherical polar coordinates.
- [CubeToSphere](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.maps/cubetosphere.md): (static) Map coordinates from the double-unit cube (centered on world-origin, edge=2) to the unit-sphere (centered on world origin, radius=1), such that points on the surface of the cube end up on the surface of the sphere.
- [DiscToPlane](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.maps/disctoplane.md): (2 overloads, static) Map the unit disc onto the World XY plane using a tangent mapping. Points coincident with the disc boundary or points beyond the disc, will be mapped to infinity.
- [DiscToSquare](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.maps/disctosquare.md): (static) Convert a 2d coordinate from the unit disc interior to the unit square interior.
- [EllipticToCartesian](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.maps/elliptictocartesian.md): (2 overloads, static) Convert a set of two dimensional elliptic coordinates into cartesian world coordinates.
- [FromUnitInterval](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.maps/fromunitinterval.md): (static) Map a number from the unit interval to a custom interval.
- [HilbertIndexToUnitSquare](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.maps/hilbertindextounitsquare.md): (static) Convert a Hilbert linear index into a unit (x,y) coordinate.
- [HilbertParameterToUnitSquare](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.maps/hilbertparametertounitsquare.md): (static) Convert a Hilbert curve parameter into a coordinate in the unit square.
- [LocalToLocal](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.maps/localtolocal.md): (2 overloads, static) Map a point from one local coordinate system into another.
- [LocalToWorld](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.maps/localtoworld.md): (2 overloads, static) Map a point in a local coordinate system into world coordinates.
- [PlaneToDisc](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.maps/planetodisc.md): (2 overloads, static) Map the World XY plane onto the unit disc using a polar arc-tangent mapping.
- [PlaneToPlane](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.maps/planetoplane.md): (4 overloads, static) Map XY coordinates.
- [SphereToCube](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.maps/spheretocube.md): (static) Map coordinates from the unit sphere (centered on world-origin, radius=1) to the double-unit-box (centered on world origin, edge=2), such that points on the surface of the sphere end up on the surface of the box.
- [SphericalToCartesian](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.maps/sphericaltocartesian.md): (4 overloads, static) Convert world polar coordinates into cartesian coordinates.
- [SquareToDisc](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.maps/squaretodisc.md): (static) Convert a 2d coordinate from the unit square interior to the unit disc interior.
- [ToUnitInterval](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.maps/tounitinterval.md): (static) Map a number from a custom interval to the unit interval.
- [TrilinearToBarycentric](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.maps/trilineartobarycentric.md): (2 overloads, static) Convert trilinear coordinates into barycentric coordinates.
- [UnitSquareToHilbertIndex](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.maps/unitsquaretohilbertindex.md): (static) Convert an (x,y) integer coordinate to a Hilbert linear index.
- [UnitSquareToHilbertParameter](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.maps/unitsquaretohilbertparameter.md): (static) Convert an (x,y) coordinate in the unit square to a linear parameter along the Hilbert curve.
- [WorldToLocal](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.maps/worldtolocal.md): (2 overloads, static) Map a point in world coordinates into a local coordinate system.
