Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Transform

Transforms the AABB with the given transform.
Read time 1 minuteLast updated 7 days ago

Definition

Transform(RigidTransform, MinMaxAABB)

Transforms the AABB with the given transform.
public static MinMaxAABB Transform(RigidTransform transform, MinMaxAABB aabb)

Parameters

Transform to apply to AABB.

AABB to be transformed.

Returns

Type

Description

MinMaxAABBTransformed AABB.

Remarks

The resulting AABB encapsulates the transformed AABB which may not be axis aligned after the transformation.

Transform(float4x4, MinMaxAABB)

Transforms the AABB with the given transform.
public static MinMaxAABB Transform(float4x4 transform, MinMaxAABB aabb)

Parameters

transform

Transform to apply to AABB.

AABB to be transformed.

Returns

Type

Description

MinMaxAABBTransformed AABB.

Remarks

The resulting AABB encapsulates the transformed AABB which may not be axis aligned after the transformation.

Transform(float3x3, MinMaxAABB)

Transforms the AABB with the given transform.
public static MinMaxAABB Transform(float3x3 transform, MinMaxAABB aabb)

Parameters

transform

Transform to apply to AABB.

AABB to be transformed.

Returns

Type

Description

MinMaxAABBTransformed AABB.

Remarks

The resulting AABB encapsulates the transformed AABB which may not be axis aligned after the transformation.