CurveLoopType Enumeration

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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:  Microsoft.Xna.Framework
Assembly:  Microsoft.Xna.Framework.Math (in Microsoft.Xna.Framework.Math.dll)

Syntax

'Declaration
Public Enumeration CurveLoopType
public enum CurveLoopType

Members

Member name Description
Constant 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.
Cycle Positions specified past the ends of the curve will wrap around to the opposite side of the Curve.
CycleOffset 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.
Oscillate Positions specified past the ends of the Curve act as an offset from the same side of the Curve toward the opposite side.
Linear Linear interpolation will be performed to determine the value.

Version Information

Silverlight

Supported in: 5

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.