Mathf.Sin 正弦

static function Sin (f : float) : float

Description描述

Returns the sine of angle f in radians.

计算并返回以弧度为单位指定的角 f 的正弦值。

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public void Awake() {
		print(Mathf.Sin(3));
	}
}
print (Mathf.Sin(3));
Page last updated: 2011-2-21