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.
24 lines
767 B
24 lines
767 B
using UnityEngine;
|
|
|
|
namespace UnityEditor.VFX.Operator
|
|
{
|
|
[VFXHelpURL("Operator-Asin")]
|
|
[VFXInfo(name = "Asin", category = "Math/Trigonometry", synonyms = new []{ "arc", "sine" })]
|
|
class Asin : VFXOperatorNumericUniform
|
|
{
|
|
public class InputProperties
|
|
{
|
|
[Range(-1.0f, 1.0f)]
|
|
public float x = 0.0f;
|
|
}
|
|
|
|
protected override sealed string operatorName { get { return "Asin"; } }
|
|
|
|
protected override sealed ValidTypeRule typeFilter { get { return ValidTypeRule.allowEverythingExceptInteger; } }
|
|
|
|
protected override sealed VFXExpression[] BuildExpression(VFXExpression[] inputExpression)
|
|
{
|
|
return new[] { new VFXExpressionASin(inputExpression[0]) };
|
|
}
|
|
}
|
|
}
|