Translations:Angles/10/zh: Difference between revisions

From Minecraft Parkour Wiki
Content added Content deleted
(Created page with "public static float cos(float value) //in radians { return SIN_TABLE[(int)(value * 10430.378F + 16384.0F) & 65535]; }")
 
No edit summary
 
Line 1: Line 1:
public static float cos(float value) //in radians
public static float cos(float value) //以弧度为单位
{
{
return SIN_TABLE[(int)(value * 10430.378F + 16384.0F) & 65535];
return SIN_TABLE[(int)(value * 10430.378F + 16384.0F) & 65535];

Latest revision as of 09:03, 3 July 2022

Message definition (Angles)
public static float cos(float value) //in radians
{
   return SIN_TABLE[(int)(value * 10430.378F + 16384.0F) & 65535];
}

public static float cos(float value) //以弧度为单位 {

   return SIN_TABLE[(int)(value * 10430.378F + 16384.0F) & 65535];

}