Click or drag to resize

PathGenerator Class

Utility class to assist in generating curves, splines, etc.
Inheritance Hierarchy
SystemObject
  DigitalRuby.ThunderAndLightningPathGenerator

Namespace:  DigitalRuby.ThunderAndLightning
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
public static class PathGenerator

The PathGenerator type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCreateCurve
Create a quad/bezier curve that curves using two control points from start to end.
Public methodStatic memberCreateSpline
Creates a spline path that curves around points in a list. Each source segment will have the same number of spline points.
Public methodStatic memberCreateSplineWithSegmentDistance
Creates a spline path that curves around points in a list. This tries to maintain a similar distance between spline segments, regardless of distance between the initial points.
Public methodStatic memberSquareRoot
Optimized square root
Top
Fields
  NameDescription
Public fieldStatic memberIs2D
Whether paths are working in 2D or 3D space
Public fieldStatic memberMinPointsForSpline
Minimum number of points to create a spline
Top
See Also