Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

VRageMath.CurveKey

Morten Aune Lyrstad edited this page Apr 16, 2022 · 48 revisions

IndexNamespace Index

CurveKey Class

public class CurveKey: IEquatable<CurveKey>, IComparable<CurveKey>

Represents a point in a multi-point curve.

Namespace: VRageMath
Assembly: VRage.Math.dll

Implements:

Properties

CurveContinuity Continuity { get; set; }

Describes whether the segment between this point and the next point in the curve is discrete or continuous.

float Position { get; }

Position of the CurveKey in the curve.

float TangentIn { get; set; }

Describes the tangent when approaching this point from the previous point in the curve.

float TangentOut { get; set; }

Describes the tangent when leaving this point to the next point in the curve.

float Value { get; set; }

Describes the value of this point.

Constructors

CurveKey()

CurveKey(float position, float value)

CurveKey(float position, float value, float tangentIn, float tangentOut)

CurveKey(float position, float value, float tangentIn, float tangentOut, CurveContinuity continuity)

Methods

CurveKey Clone()

Creates a copy of the CurveKey.

int CompareTo(CurveKey other)

Compares this instance to another CurveKey and returns an indication of their relative values.

bool Equals(CurveKey other)

Determines whether the specified Object is equal to the CurveKey.

bool Equals(object obj)

Returns a value that indicates whether the current instance is equal to a specified object.

int GetHashCode()

Returns the hash code for this instance.

Clone this wiki locally