Show / Hide Table of Contents

Class KochanekBartelsControlPoint

A control point for the Kochanek Bartels spline class. Contains the position of the control point and the parameters tension, bias and continuity that control the shape of the spline at the control point.

Inheritance
System.Object
KochanekBartelsControlPoint
Namespace: VRSketchingGeometry.Splines
Assembly: VRSketchingGeometry.dll
Syntax
public class KochanekBartelsControlPoint
Remarks

Original author: tterpi

Constructors

KochanekBartelsControlPoint()

Declaration
public KochanekBartelsControlPoint()

KochanekBartelsControlPoint(Vector3, Single, Single, Single)

Constructor for the KochanekBartelsSpline.

Declaration
public KochanekBartelsControlPoint(Vector3 position, float tension = 0F, float bias = 0F, float continuity = 0F)
Parameters
Type Name Description
UnityEngine.Vector3 position

Position of the control point.

System.Single tension

Controls how sharp or soft the curve is at the control point.

System.Single bias

Determines the influence of the previous and next control point on the tangent.

System.Single continuity

Determines the similarity between the source and destination tangent.

Properties

Bias

Declaration
public float Bias { get; set; }
Property Value
Type Description
System.Single

Continuity

Declaration
public float Continuity { get; set; }
Property Value
Type Description
System.Single

Position

Declaration
public Vector3 Position { get; set; }
Property Value
Type Description
UnityEngine.Vector3

Tension

Declaration
public float Tension { get; set; }
Property Value
Type Description
System.Single

Methods

CalculateDestinationTangent(KochanekBartelsControlPoint, KochanekBartelsControlPoint)

Calculate the outgoing tangent.

Declaration
public Vector3 CalculateDestinationTangent(KochanekBartelsControlPoint previousControlPoint, KochanekBartelsControlPoint nextControlPoint)
Parameters
Type Name Description
KochanekBartelsControlPoint previousControlPoint
KochanekBartelsControlPoint nextControlPoint
Returns
Type Description
UnityEngine.Vector3

CalculateSourceTangent(KochanekBartelsControlPoint, KochanekBartelsControlPoint)

Calculate the incoming tangent.

Declaration
public Vector3 CalculateSourceTangent(KochanekBartelsControlPoint previousControlPoint, KochanekBartelsControlPoint nextControlPoint)
Parameters
Type Name Description
KochanekBartelsControlPoint previousControlPoint
KochanekBartelsControlPoint nextControlPoint
Returns
Type Description
UnityEngine.Vector3

Operators

Implicit(Vector3 to KochanekBartelsControlPoint)

Implicitly convert a Vector3 object to a KochanekBartelsControlPoint object with default values for tension, bias and continuity.

Declaration
public static implicit operator KochanekBartelsControlPoint(Vector3 position)
Parameters
Type Name Description
UnityEngine.Vector3 position
Returns
Type Description
KochanekBartelsControlPoint
In This Article
Back to top Generated by DocFX