ドキュメント

Unity Engine

Unity Engine

Tan(float)

Returns the tangent of angle f in radians.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public static float Tan(float f)

Parameters

Returns

Type

Description

float

Remarks

Additional Resources: Mathf.Cos, Mathf.Sin.

Examples

using UnityEngine;using System.Collections;public class ExampleClass : MonoBehaviour{ void Example() { print(Mathf.Tan(0.5F)); }}