# MaxAbsComponent

> Get the maximum absolute value component from the specified vector.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.LowLevelPhysics2D](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d.md)
* **Assembly:** UnityEngine.Physics2DModule

## MaxAbsComponent(Vector2)

Get the maximum absolute value component from the specified vector.

```csharp
public static float MaxAbsComponent(Vector2 vector)
```

### Parameters

**** (\[Vector2]\(/engine/6000.3/script-reference/unityengine/vector2)): The vector to examine.

### Returns

| Type                                                          | Description               |
| ------------------------------------------------------------- | ------------------------- |
| [float](https://learn.microsoft.com/dotnet/api/system.single) | The calculated component. |

## MaxAbsComponent(Vector3)

Get the maximum absolute value component from the specified vector.

```csharp
public static float MaxAbsComponent(Vector3 vector)
```

### Parameters

**** (\[Vector3]\(/engine/6000.3/script-reference/unityengine/vector3)): The vector to examine.

### Returns

| Type                                                          | Description               |
| ------------------------------------------------------------- | ------------------------- |
| [float](https://learn.microsoft.com/dotnet/api/system.single) | The calculated component. |
