Curve Class (Microsoft.Xna.Framework)

Contains a collection of CurveKey points in 2D space and provides methods for evaluating features of the curve they define.
System.Object
   Microsoft.Xna.Framework.Curve

Namespace: Microsoft.Xna.Framework
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.271)
  • C#
  • VB
  • F#
[DataContractAttribute]
public class Curve

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

The Curve type exposes the following members.

  Platforms Name Description
Curve Constructs a curve. 
Top
  Platforms Name Description
IsConstant Returns true if this curve is constant (has zero or one points); false otherwise. 
Keys The collection of curve keys. 
PostLoop Defines how to handle weighting values that are greater than the last control point in the curve. 
PreLoop Defines how to handle weighting values that are less than the first control point in the curve. 
Top
  Platforms Name Description
Clone Creates a copy of this curve. 
ComputeTangent(int, CurveTangent) Computes tangent for the specific key in the collection. 
ComputeTangent(int, CurveTangent, CurveTangent) Computes tangent for the specific key in the collection. 
ComputeTangents(CurveTangent) Computes tangents for all keys in the collection. 
ComputeTangents(CurveTangent, CurveTangent) Computes tangents for all keys in the collection. 
Evaluate Evaluate the value at a position of this Curve
Top
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web