Math.Tanの読み方

C#で利用されるメソッドの1つである「Math.Tan」の読み方を掲載してます。
読み⽅
「マス・タンジェント」と読みます。
英訳
「Math」は「数学」という意味があります。
Math.Tanとは
C#で、角度と高さから底辺を求めることができるメソッドとなります。
using System;
namespace sebeeapp
{
class Program
{
static void Main(string[] args)
{
double angle, height, Bottom;
angle = 45; // 角度
height = 2; // 高さ
// 底辺を求める
Bottom = height / Math.Tan(Math.PI * angle / 180.0);
Console.WriteLine(Bottom); // 2.0000000000000004
}
}
}
-
前の記事
createLinearGradientの読み方 2020.10.08
-
次の記事
rebaseの読み方 2020.10.08