# MapVector record struct

> Three doubles: a position, a direction, a velocity or a spin, in meters on Godot's axes with +Y up. Everything a converter writes is in meters, whatever units its game used, so a vector from one game means the same in another.

Namespace `EvilEngine.Formats.Maps`, assembly `EvilEngine.Formats`. Engine commit 4ff877b1.

```csharp
public readonly record struct MapVector
```

Three doubles: a position, a direction, a velocity or a spin, in meters on Godot's axes with +Y up. Everything a converter writes is in meters, whatever units its game used, so a vector from one game means the same in another.

## Members

### MapVector (constructor)

```csharp
public MapVector(double X, double Y, double Z)
```

Makes a vector from its three components.

### Zero (field)

```csharp
public static readonly MapVector Zero
```

`(0, 0, 0)`.

### One (field)

```csharp
public static readonly MapVector One
```

`(1, 1, 1)`, as a scale that leaves things as they are.

### X (property)

```csharp
public double X { get; init; }
```

The X component.

### Y (property)

```csharp
public double Y { get; init; }
```

The Y component, up.

### Z (property)

```csharp
public double Z { get; init; }
```

The Z component.

### Length (property)

```csharp
public double Length { get; }
```

The vector's length.
