You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

21 lines
717 B

namespace UnityEditor.VFX.Operator
{
[VFXHelpURL("Operator-Atan")]
[VFXInfo(name = "Atan", category = "Math/Trigonometry", synonyms = new []{ "arc", "tangent" })]
class Atan : VFXOperatorNumericUniform
{
public class InputProperties
{
public float x = 0.0f;
}
protected override sealed string operatorName { get { return "Atan"; } }
protected override sealed ValidTypeRule typeFilter { get { return ValidTypeRule.allowEverythingExceptInteger; } }
protected override sealed VFXExpression[] BuildExpression(VFXExpression[] inputExpression)
{
return new[] { new VFXExpressionATan(inputExpression[0]) };
}
}
}