Skip to content
This repository was archived by the owner on Dec 13, 2025. It is now read-only.

VRageMath.Curve

Malware edited this page Dec 21, 2018 · 42 revisions

Index

Curve Class

Namespace: VRageMath
Assembly: VRage.Math.dll

Summary

Stores an arbitrary collection of 2D CurveKey points, and provides methods for evaluating features of the curve they define.

Properties

_CurveLoopType PreLoop_ Specifies how to handle weighting values that are less than the first control point in the curve.
_CurveLoopType PostLoop_ Specifies how to handle weighting values that are greater than the last control point in the curve.
_CurveKeyCollection Keys_ The points that make up the curve.
_bool IsConstant_ Gets a value indicating whether the curve is constant.
### Methods
_Curve Clone()_ Creates a copy of the Curve.
_void ComputeTangent(int keyIndex, CurveTangent tangentType)_ Computes both the TangentIn and the TangentOut for a CurveKey specified by its index.
_void ComputeTangent(int keyIndex, CurveTangent tangentInType, CurveTangent tangentOutType)_ Computes a specified type of TangentIn and a specified type of TangentOut for a given CurveKey.
_void ComputeTangents(CurveTangent tangentType)_ Computes all tangents for all CurveKeys in this Curve, using a specified tangent type for both TangentIn and TangentOut.
_void ComputeTangents(CurveTangent tangentInType, CurveTangent tangentOutType)_ Computes all tangents for all CurveKeys in this Curve, using different tangent types for TangentOut and TangentIn.
_float Evaluate(float position)_ Finds the value at a position on the Curve.

Clone this wiki locally