vec2-fn
    Preparing search index...

    Function isVec2LikeObject

    • Check whether a value is a vec2-like object.

      Type Parameters

      • T

      Parameters

      • value: T

        Input value to check.

      Returns value is T extends Vec2 ? T : never

      • Boolean result of whether the input is a vec2-like object.
      isVec2LikeObject({ x: 0, y: 1 }); // -> true