C# Class FC3Editor.Nomad.Spline

Inheritance: IDisposable
Exibir arquivo Open project: Azerothian/fc3editor Class Usage Examples

Public Properties

Property Type Description
Null Spline

Protected Properties

Property Type Description
m_splinePtr System.IntPtr

Public Methods

Method Description
AddPoint ( Vec2 point ) : void
Clear ( ) : void
Create ( ) : Spline
Dispose ( ) : void
Draw ( float penWidth, SplineController controller ) : void
FinalizeSpline ( ) : void
HitTestPoints ( Vec2 point, float penWidth, float hitWidth, int &hitIndex, Vec2 &hitPos ) : bool
HitTestSegments ( Vec2 center, float radius, int &hitIndex, Vec2 &hitPos ) : bool
InsertPoint ( Vec2 point, int index ) : void
OptimizePoint ( int index ) : bool
RemovePoint ( int index ) : void
RemoveSimilarPoints ( ) : bool
Spline ( IntPtr ptr ) : System
UpdateSpline ( ) : void
UpdateSplineHeight ( ) : void
this ( int index ) : Vec2

Method Details

AddPoint() public method

public AddPoint ( Vec2 point ) : void
point Vec2
return void

Clear() public method

public Clear ( ) : void
return void

Create() public static method

public static Create ( ) : Spline
return Spline

Dispose() public method

public Dispose ( ) : void
return void

Draw() public method

public Draw ( float penWidth, SplineController controller ) : void
penWidth float
controller SplineController
return void

FinalizeSpline() public method

public FinalizeSpline ( ) : void
return void

HitTestPoints() public method

public HitTestPoints ( Vec2 point, float penWidth, float hitWidth, int &hitIndex, Vec2 &hitPos ) : bool
point Vec2
penWidth float
hitWidth float
hitIndex int
hitPos Vec2
return bool

HitTestSegments() public method

public HitTestSegments ( Vec2 center, float radius, int &hitIndex, Vec2 &hitPos ) : bool
center Vec2
radius float
hitIndex int
hitPos Vec2
return bool

InsertPoint() public method

public InsertPoint ( Vec2 point, int index ) : void
point Vec2
index int
return void

OptimizePoint() public method

public OptimizePoint ( int index ) : bool
index int
return bool

RemovePoint() public method

public RemovePoint ( int index ) : void
index int
return void

RemoveSimilarPoints() public method

public RemoveSimilarPoints ( ) : bool
return bool

Spline() public method

public Spline ( IntPtr ptr ) : System
ptr System.IntPtr
return System

UpdateSpline() public method

public UpdateSpline ( ) : void
return void

UpdateSplineHeight() public method

public UpdateSplineHeight ( ) : void
return void

this() public method

public this ( int index ) : Vec2
index int
return Vec2

Property Details

Null public_oe static_oe property

public static Spline,FC3Editor.Nomad Null
return Spline

m_splinePtr protected_oe property

protected IntPtr,System m_splinePtr
return System.IntPtr