CosSin
Calculate both the Cosine and Sine of the specified angle.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: UnityEngine.LowLevelPhysics2D
- Assembly: UnityEngine.Physics2DModule
CosSin(float, float, float)
Calculate both the Cosine and Sine of the specified angle.
public static void CosSin(float angle, out float cosine, out float sine)
Parameters
CosSin(float)
Calculate both the Cosine and Sine of the specified angle.
public static Vector2 CosSin(float angle)
Parameters
The angle to calculate, in radians.
Returns
Type | Description |
|---|---|
| Vector2 | A 2D vector where X is the Cosine and Y is the Sine of the specified angle. |