---
title: "Math 멤버, \"use typeshade\" 파일에서 쓰는 이름을 모은 TypeShade 언어 참조"
description: "셰이더에서 손댈 수 있는 `Math` 멤버 41개입니다. 각각 내장 함수 호출이나 박아 넣은 리터럴로 이어져, 익숙한 이름이 대상의 코드가 됩니다."
url: https://typeshade.dev/ko/reference/math/
language: ko
---

# Math 멤버

이름 41개

셰이더에서 손댈 수 있는 `Math` 멤버이며, 내장 함수나 리터럴로 이어집니다.

시그니처와 이름 아래 문장, 컴파일러 메시지는 커밋 af54ddad5의 컴파일러가 쓴 영어 원문입니다.

**[`Math.fround`](https://typeshade.dev/ko/reference/math/fround/)**

Casts a number to `f32` single-precision floating-point by inlining a literal value rounded to 32-bit precision.

**[`Math.random`](https://typeshade.dev/ko/reference/math/random/)**

Not a GPU builtin: a call with no seed does not compile, because a shader has no random source.

**[`Math.abs`](https://typeshade.dev/ko/reference/math/abs/)**

Returns the absolute value of `x`.

**[`Math.acos`](https://typeshade.dev/ko/reference/math/acos/)**

Returns the arccosine of `x` (in radians).

**[`Math.acosh`](https://typeshade.dev/ko/reference/math/acosh/)**

Returns the inverse hyperbolic cosine of `x`.

**[`Math.asin`](https://typeshade.dev/ko/reference/math/asin/)**

Returns the arcsine of `x` (in radians).

**[`Math.asinh`](https://typeshade.dev/ko/reference/math/asinh/)**

Returns the inverse hyperbolic sine of `x`.

**[`Math.atan`](https://typeshade.dev/ko/reference/math/atan/)**

Returns the arctangent of `x` (in radians).

**[`Math.atanh`](https://typeshade.dev/ko/reference/math/atanh/)**

Returns the inverse hyperbolic tangent of `x`.

**[`Math.atan2`](https://typeshade.dev/ko/reference/math/atan2/)**

Returns the arctangent of `y/x` (in radians), using the signs of both arguments to determine the quadrant, taking arguments in the order `(y, x)`.

**[`Math.cbrt`](https://typeshade.dev/ko/reference/math/cbrt/)**

Returns the cube root of `x`, computed as `sign(x) * pow(abs(x), 1/3)`, for `f32` scalars only.

**[`Math.ceil`](https://typeshade.dev/ko/reference/math/ceil/)**

Returns the smallest integer not less than `x`.

**[`Math.cos`](https://typeshade.dev/ko/reference/math/cos/)**

Returns the cosine of `x` (in radians).

**[`Math.cosh`](https://typeshade.dev/ko/reference/math/cosh/)**

Returns the hyperbolic cosine of `x`.

**[`Math.exp`](https://typeshade.dev/ko/reference/math/exp/)**

Returns the exponential function (e raised to the power of `x`).

**[`Math.expm1`](https://typeshade.dev/ko/reference/math/expm1/)**

Returns e raised to the power of `x` minus 1, computed as `exp(x) - 1`, for `f32` scalars only.

**[`Math.floor`](https://typeshade.dev/ko/reference/math/floor/)**

Returns the largest integer not greater than `x`.

**[`Math.hypot`](https://typeshade.dev/ko/reference/math/hypot/)**

Returns the Euclidean length of the vector formed from 2 or 3 `f32` scalar arguments, computed via `length`, for `f32` scalars only.

**[`Math.log`](https://typeshade.dev/ko/reference/math/log/)**

Returns the natural logarithm of `x`.

**[`Math.log10`](https://typeshade.dev/ko/reference/math/log10/)**

Returns the base-10 logarithm of `x` (`log(x)` times `Math.LOG10E`), for `f32` scalars only.

**[`Math.log1p`](https://typeshade.dev/ko/reference/math/log1p/)**

Returns the natural logarithm of (1 plus `x`), computed as `log(x + 1)`, for `f32` scalars only.

**[`Math.log2`](https://typeshade.dev/ko/reference/math/log2/)**

Returns the base-2 logarithm of `x`.

**[`Math.max`](https://typeshade.dev/ko/reference/math/max/)**

Returns the greater of `a` and `b`.

**[`Math.min`](https://typeshade.dev/ko/reference/math/min/)**

Returns the lesser of `a` and `b`.

**[`Math.pow`](https://typeshade.dev/ko/reference/math/pow/)**

Returns `x` raised to the power of `y`; `x ** y` is the same operation.

**[`Math.round`](https://typeshade.dev/ko/reference/math/round/)**

Rounds `x` to the nearest integer, with halfway cases rounding to the nearest even integer.

**[`Math.sign`](https://typeshade.dev/ko/reference/math/sign/)**

Returns -1 if `x` is negative, 1 if positive, and 0 if zero.

**[`Math.sin`](https://typeshade.dev/ko/reference/math/sin/)**

Returns the sine of `x` (in radians).

**[`Math.sinh`](https://typeshade.dev/ko/reference/math/sinh/)**

Returns the hyperbolic sine of `x`.

**[`Math.sqrt`](https://typeshade.dev/ko/reference/math/sqrt/)**

Returns the square root of `x`.

**[`Math.tan`](https://typeshade.dev/ko/reference/math/tan/)**

Returns the tangent of `x` (in radians).

**[`Math.tanh`](https://typeshade.dev/ko/reference/math/tanh/)**

Returns the hyperbolic tangent of `x`.

**[`Math.trunc`](https://typeshade.dev/ko/reference/math/trunc/)**

Returns `x` truncated toward zero.

**[`Math.E`](https://typeshade.dev/ko/reference/math/E/)**

The mathematical constant e, inlined as a compile-time `f32` literal (approximately 2.71828).

**[`Math.LN10`](https://typeshade.dev/ko/reference/math/LN10/)**

The natural logarithm of 10, inlined as a compile-time `f32` literal (approximately 2.30259).

**[`Math.LN2`](https://typeshade.dev/ko/reference/math/LN2/)**

The natural logarithm of 2, inlined as a compile-time `f32` literal (approximately 0.69315).

**[`Math.LOG10E`](https://typeshade.dev/ko/reference/math/LOG10E/)**

The base-10 logarithm of e, inlined as a compile-time `f32` literal (approximately 0.43429).

**[`Math.LOG2E`](https://typeshade.dev/ko/reference/math/LOG2E/)**

The base-2 logarithm of e, inlined as a compile-time `f32` literal (approximately 1.44270).

**[`Math.PI`](https://typeshade.dev/ko/reference/math/PI/)**

The mathematical constant π, inlined as a compile-time `f32` literal (approximately 3.14159).

**[`Math.SQRT1_2`](https://typeshade.dev/ko/reference/math/SQRT1_2/)**

The square root of 1/2, inlined as a compile-time `f32` literal (approximately 0.70711).

**[`Math.SQRT2`](https://typeshade.dev/ko/reference/math/SQRT2/)**

The square root of 2, inlined as a compile-time `f32` literal (approximately 1.41421).

이름, 선언과 설명은 고정된 커밋의 컴파일러 언어 서비스에서 가져옵니다. 내장 함수의 출력 표기와 스테이지 규칙은 컴파일러 코드에서 읽습니다. 항목의 묶음과 이 페이지의 보충 설명은 사이트에서 작성했습니다.
