This repository has been archived by the owner on Oct 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 125
VRageMath.CurveLoopType
Morten Aune Lyrstad edited this page Apr 16, 2022
·
37 revisions
← Index ← Namespace Index
public enum CurveLoopType
Defines how the value of a Curve will be determined for positions before the first point on the Curve or after the last point on the Curve.
Namespace: VRageMath
Assembly: VRage.Math.dll
Member | Description |
---|---|
CurveLoopType Constant prohibited | The Curve will evaluate to its first key for positions before the first point in the Curve and to the last key for positions after the last point. |
CurveLoopType Cycle prohibited | Positions specified past the ends of the curve will wrap around to the opposite side of the Curve. |
CurveLoopType CycleOffset prohibited | Positions specified past the ends of the curve will wrap around to the opposite side of the Curve. The value will be offset by the difference between the values of the first and last CurveKey multiplied by the number of times the position wraps around. If the position is before the first point in the Curve, the difference will be subtracted from its value; otherwise, the difference will be added. |
CurveLoopType Linear prohibited | Linear interpolation will be performed to determine the value. |
CurveLoopType Oscillate prohibited | Positions specified past the ends of the Curve act as an offset from the same side of the Curve toward the opposite side. |
Do you have questions, comments, suggestions for improvements? Is there something I can do better? Did I make a mistake? Please add an issue here, and prefix your issue title with Wiki. Thank you, your help will be very appreciated!