---
title: 일반적인 수학 함수 사용
product: Unity Editor
version: '6000.0'
latest_version: '7000.0'
status: This page documents version 6000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/ko-kr/engine/6000.0/manual/scripting/object-oriented-development/programming-math/class-mathf
latest_url: https://docs.unity.com/ko-kr/engine/7000.0/manual/scripting/object-oriented-development/programming-math/class-mathf.md
generated_at: 2026-11-19T13:46:02.288Z
locale: ko-kr
---

# 일반적인 수학 함수 사용

> Unity Mathf 클래스를 사용하여 게임 개발에 일반적으로 필요한 삼각 함수, 로그 함수 및 기타 수학 함수를 적용합니다.

Unity Mathf 클래스는 게임 및 앱 개발에 일반적으로 필요한 삼각 함수, 로그 함수 및 기타 함수를 비롯한 일반적인 수학 함수를 제공합니다.

이 페이지에서는 Mathf 클래스와 해당 클래스를 사용하여 스크립팅 때 일반적으로 사용되는 방법에 대한 개요를 제공합니다. Mathf 클래스의 모든 멤버에 대한 전체 레퍼런스는 [Mathf 스크립트 레퍼런스](/engine/6000.0/script-reference/unityengine/mathf.md)를 참조하십시오.

## 삼각법##trigonometric

Unity의 모든 삼각 함수는 **라디안**으로 작동합니다.

* [`Sin`](/engine/6000.0/script-reference/unityengine/mathf/sin.md)
* [`Cos`](/engine/6000.0/script-reference/unityengine/mathf/cos.md)
* [`Tan`](/engine/6000.0/script-reference/unityengine/mathf/tan.md)
* [`Asin`](/engine/6000.0/script-reference/unityengine/mathf/asin.md)
* [`Acos`](/engine/6000.0/script-reference/unityengine/mathf/acos.md)
* [`Atan`](/engine/6000.0/script-reference/unityengine/mathf/atan.md)
* [`Atan2`](/engine/6000.0/script-reference/unityengine/mathf/atan2.md)

[`PI`](/engine/6000.0/script-reference/unityengine/mathf/pi.md)은 상수로 사용할 수 있으며, 정적 값 [`Rad2Deg`](/engine/6000.0/script-reference/unityengine/mathf/rad2deg.md) 또는 [`Deg2Rad`](/engine/6000.0/script-reference/unityengine/mathf/deg2rad.md)로 곱하여 라디안과 도 사이를 변환할 수 있습니다.

## 힘 및 제곱근##powers-and-square-roots

Unity 일반적인 파워 및 제곱근 함수를 제공합니다.

* [`Pow`](/engine/6000.0/script-reference/unityengine/mathf/pow.md)
* [`Sqrt`](/engine/6000.0/script-reference/unityengine/mathf/sqrt.md)
* [`Exp`](/engine/6000.0/script-reference/unityengine/mathf/exp.md)

그리고 몇 가지 유용한 2의 제곱과 관련된 함수도 있습니다. 이는 일반적인 바이너리 데이터 크기와 작업할 때 유용합니다. 이는 종종 두 개의 값(예: 텍스처 크기)으로 제한되거나 최적화됩니다.

* [`ClosestPowerOfTwo`](/engine/6000.0/script-reference/unityengine/mathf/closestpoweroftwo.md)
* [`NextPowerOfTwo`](/engine/6000.0/script-reference/unityengine/mathf/nextpoweroftwo.md)
* [`IsPowerOfTwo`](/engine/6000.0/script-reference/unityengine/mathf/ispoweroftwo.md)

## 보간##interpolation

Unity 보간 함수를 사용하면 주어진 두 지점 사이에 있는 값을 계산할 수 있습니다. 각 함수는 서로 다른 방식으로 작동하며, 다양한 상황에 적합합니다. 자세한 내용은 각 예시를 참조하십시오.

* [`Lerp`](/engine/6000.0/script-reference/unityengine/mathf/lerp.md)
* [`LerpAngle`](/engine/6000.0/script-reference/unityengine/mathf/lerpangle.md)
* [`LerpUnclamped`](/engine/6000.0/script-reference/unityengine/mathf/lerpunclamped.md)
* [`InverseLerp`](/engine/6000.0/script-reference/unityengine/mathf/inverselerp.md)
* [`MoveTowards`](/engine/6000.0/script-reference/unityengine/mathf/movetowards.md)
* [`MoveTowardsAngle`](/engine/6000.0/script-reference/unityengine/mathf/movetowardsangle.md)
* [`SmoothDamp`](/engine/6000.0/script-reference/unityengine/mathf/smoothdamp.md)
* [`SmoothDampAngle`](/engine/6000.0/script-reference/unityengine/mathf/smoothdampangle.md)
* [`SmoothStep`](/engine/6000.0/script-reference/unityengine/mathf/smoothstep.md)

[벡터 클래스](/engine/6000.0/manual/scripting/object-oriented-development/programming-math/vectors.md)와 [`Quaternion`](/engine/6000.0/manual/working-with-gameobjects/gameobject-fundamentals/rotation-orientation/class-quaternion.md) 클래스의 보간 함수(예: Quaternion.Lerp)는 여러 차원에서 포지션, 방향 및 회전을 보간할 수 있습니다.

## 값 제한 및 반복##limiting-and-repeating-values

이러한 간단한 헬퍼 함수는 게임이나 앱 유용하며, 값을 특정 범위로 제한하거나 특정 범위 내에서 반복해야 할 때 시간을 절약할 수 있습니다.

* 4 및 5
* 4 및 5
* 4 및 5
* 4 및 5

## 로그##logarithmic

[`Log`](/engine/6000.0/script-reference/unityengine/mathf/log.md) 함수를 사용하면 지정된 숫자의 로그를 계산할 수 있습니다(자연적인 로그 또는 지정된 기본값). 또한 [`Log10`](/engine/6000.0/script-reference/unityengine/mathf/log10.md) 함수는 지정된 숫자의 base-10 로그를 반환합니다.

## 기타 함수##other-functions

Mathf 클래스의 전체 함수 목록은 [Mathf 스크립트 레퍼런스](/engine/6000.0/script-reference/unityengine/mathf.md)를 참조하십시오.
