Table of Contents

Method b3ClosestPointToAABB

Namespace
Box3D.Native
Assembly
Box3D.NET.Native.dll

b3ClosestPointToAABB(Vector3, b3AABB)

Computes the closest point on a box to a point.

public static Vector3 b3ClosestPointToAABB(Vector3 point, b3AABB a)

Parameters

point Vector3

The point.

a b3AABB

The box.

Returns

Vector3

The closest point, which is the point itself when it lies inside the box.