Stores an arbitrary collection of 2D CurveKey points, and provides methods for evaluating features of the curve they define.
More...
Stores an arbitrary collection of 2D CurveKey points, and provides methods for evaluating features of the curve they define.
Definition at line 9 of file Curve.cs.
Curve VRageMath.Curve.Clone |
( |
| ) |
|
|
inline |
void VRageMath.Curve.ComputeTangent |
( |
int |
keyIndex, |
|
|
CurveTangent |
tangentType |
|
) |
| |
|
inline |
Computes both the TangentIn and the TangentOut for a CurveKey specified by its index.
- Parameters
-
keyIndex | The index of the CurveKey for which to compute tangents (in the Keys collection of the Curve). |
tangentType | The type of tangents to compute (one of the types specified in the CurveTangent enumeration). |
Definition at line 84 of file Curve.cs.
Computes a specified type of TangentIn and a specified type of TangentOut for a given CurveKey.
- Parameters
-
keyIndex | The index of the CurveKey for which to compute tangents (in the Keys collection of the Curve). |
tangentInType | The type of TangentIn to compute (one of the types specified in the CurveTangent enumeration). |
tangentOutType | The type of TangentOut to compute (one of the types specified in the CurveTangent enumeration). |
Definition at line 93 of file Curve.cs.
void VRageMath.Curve.ComputeTangents |
( |
CurveTangent |
tangentType | ) |
|
|
inline |
Computes all tangents for all CurveKeys in this Curve, using a specified tangent type for both TangentIn and TangentOut.
- Parameters
-
tangentType | The type of TangentOut and TangentIn to compute (one of the types specified in the CurveTangent enumeration). |
Definition at line 143 of file Curve.cs.
Computes all tangents for all CurveKeys in this Curve, using different tangent types for TangentOut and TangentIn.
- Parameters
-
tangentInType | The type of TangentIn to compute (one of the types specified in the CurveTangent enumeration). |
tangentOutType | The type of TangentOut to compute (one of the types specified in the CurveTangent enumeration). |
Definition at line 152 of file Curve.cs.
float VRageMath.Curve.Evaluate |
( |
float |
position | ) |
|
|
inline |
Finds the value at a position on the Curve.
- Parameters
-
position | The position on the Curve. |
Definition at line 162 of file Curve.cs.
bool VRageMath.Curve.IsConstant |
|
get |
Gets a value indicating whether the curve is constant.
Definition at line 60 of file Curve.cs.
The points that make up the curve.
Definition at line 49 of file Curve.cs.
Specifies how to handle weighting values that are greater than the last control point in the curve.
Definition at line 34 of file Curve.cs.
Specifies how to handle weighting values that are less than the first control point in the curve.
Definition at line 19 of file Curve.cs.
The documentation for this class was generated from the following file: