Show / Hide Table of Contents

Class Spline

Interface for a spline implementation

Inheritance
System.Object
Spline
KochanekBartelsSpline
LinearInterpolationSpline
Namespace: VRSketchingGeometry.Splines
Assembly: VRSketchingGeometry.dll
Syntax
public abstract class Spline
Remarks

Original author: tterpi

Properties

InterpolatedPoints

Declaration
public List<Vector3> InterpolatedPoints { get; protected set; }
Property Value
Type Description
System.Collections.Generic.List<UnityEngine.Vector3>

Methods

AddControlPoint(Vector3)

Add control point at the end of the spline.

Declaration
public abstract SplineModificationInfo AddControlPoint(Vector3 controlPoint)
Parameters
Type Name Description
UnityEngine.Vector3 controlPoint
Returns
Type Description
SplineModificationInfo

DeleteControlPoint(Int32)

Delete a control point at index.

Declaration
public abstract SplineModificationInfo DeleteControlPoint(int index)
Parameters
Type Name Description
System.Int32 index
Returns
Type Description
SplineModificationInfo

GetControlPoints()

Declaration
public abstract List<Vector3> GetControlPoints()
Returns
Type Description
System.Collections.Generic.List<UnityEngine.Vector3>

GetNumberOfControlPoints()

Declaration
public abstract int GetNumberOfControlPoints()
Returns
Type Description
System.Int32

InsertControlPoint(Int32, Vector3)

Insert control point at index.

Declaration
public abstract SplineModificationInfo InsertControlPoint(int index, Vector3 controlPoint)
Parameters
Type Name Description
System.Int32 index
UnityEngine.Vector3 controlPoint
Returns
Type Description
SplineModificationInfo

SetControlPoint(Int32, Vector3)

Replace control point at index.

Declaration
public abstract SplineModificationInfo SetControlPoint(int index, Vector3 controlPoint)
Parameters
Type Name Description
System.Int32 index
UnityEngine.Vector3 controlPoint
Returns
Type Description
SplineModificationInfo

SetControlPoints(Vector3[])

Set all control points.

Declaration
public abstract void SetControlPoints(Vector3[] controlPoints)
Parameters
Type Name Description
UnityEngine.Vector3[] controlPoints
In This Article
Back to top Generated by DocFX