TextStudioCurveReference
public sealed class TextStudioCurveReference : ITextStudioCurveOne independently owned inline shape or a link to a reusable curve profile.
Methods
Section titled “Methods”
SetInline(in TextStudioCurveDefinition)
Section titled “SetInline(in TextStudioCurveDefinition)”public void SetInline(in TextStudioCurveDefinition definition)Copies a curve definition into this reference, removes its profile link, and advances the local revision.
Parameters
| Name | Type |
|---|---|
definition |
TextStudio.TextStudioCurveDefinition |
Link(TextStudioCurveProfile)
Section titled “Link(TextStudioCurveProfile)”public void Link(TextStudioCurveProfile profile)Links a non-null shared curve profile and advances the local revision.
Parameters
| Name | Type |
|---|---|
profile |
TextStudio.TextStudioCurveProfile |
MakeLocal()
Section titled “MakeLocal()”public void MakeLocal()Copies the linked profile’s definition into local settings and removes the profile link.
Evaluate(float)
Section titled “Evaluate(float)”public float Evaluate(float t)Evaluate the curve at normalized input t in [0, 1].
Parameters
| Name | Type |
|---|---|
t |
System.Single |
Returns
System.Single
Constructors
Section titled “Constructors”
TextStudioCurveReference()
Section titled “TextStudioCurveReference()”public TextStudioCurveReference()Properties
Section titled “Properties”
IsLinked
Section titled “IsLinked”public bool IsLinked { get; }Returns
System.Boolean
Profile
Section titled “Profile”public TextStudioCurveProfile Profile { get; }Returns
TextStudio.TextStudioCurveProfile
Revision
Section titled “Revision”public uint Revision { get; }Returns
System.UInt32
Definition
Section titled “Definition”public TextStudioCurveDefinition Definition { get; }Returns
TextStudio.TextStudioCurveDefinition