math docs
    Preparing search index...

    Function clampPoint

    • Clamps a point to the surface or interior of an OBB. Reference: Closest Point on OBB to Point in Real-Time Collision Detection by Christer Ericson (chapter 5.1.4)

      Parameters

      • out: vec3.Vec3

        The clamped point result

      • obb: Const<obb3.OBB3>

        The OBB

      • point: readonly [number, number, number]

        The point to clamp

      Returns vec3.Vec3

      out