ドキュメント

Unity Engine

Download Unity

Unity Engine

CreateFromCenterAndHalfExtents(float3, float3)

Creates the AABB from a center and half extents.
読み終わるまでの所要時間 1 分最終更新 3時間前

Definition

public static MinMaxAABB CreateFromCenterAndHalfExtents(float3 center, float3 halfExtents)

Parameters

center

Center of AABB.

halfExtents

Half extents of AABB.

Returns

Type

Description

MinMaxAABBAABB created from inputs.

Remarks

This function takes half extents. It is half the distance between MinMaxAABB.Min and MinMaxAABB.Max. If you have full extents, you can call MinMaxAABB.CreateFromCenterAndExtents.