Class LinearSegment
Represents a linear segment of a CurvePart by using a list of float3s. A CurveSgment does not know its own start point. For the first CurveSegment in a sequence the start point is saved in the CurvePart belonging to the segment. The start point for the CurveSegment with index i is the last vertex in the CurveSegent[i-1]'s list of vertices.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Fusee.Math.Core
Assembly: Fusee.Math.Core.dll
Syntax
public class LinearSegment : CurveSegment
Methods
CalcUniformPolyline(float3, Int32, Int32)
Calculates a polygonal chain, representing the curve segment.
Declaration
public override IEnumerable<float3> CalcUniformPolyline(float3 startPoint, int segmentsPerCurve, int degree)
Parameters
Type | Name | Description |
---|---|---|
float3 | startPoint | The segment's starting point |
System.Int32 | segmentsPerCurve | The number of segments per curve |
System.Int32 | degree | The degree of the curve: 1 for linear, 2 for conic, 3 for cubic |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<float3> |