Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


MaxAbsComponent

Get the maximum absolute value component from the specified vector.
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Method
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule

MaxAbsComponent(Vector2)

Get the maximum absolute value component from the specified vector.
public static float MaxAbsComponent(Vector2 vector)

Parameters

vector

The vector to examine.

Returns

Type

Description

floatThe calculated component.

MaxAbsComponent(Vector3)

Get the maximum absolute value component from the specified vector.
public static float MaxAbsComponent(Vector3 vector)

Parameters

vector

The vector to examine.

Returns

Type

Description

floatThe calculated component.