Class SegmentExtensions
Definition
- Assembly:
- Tizen.NUI.Physics2D.dll
Unsafe extensions methods for the Segment shape.
public static class SegmentExtensions
- Inheritance
-
objectSegmentExtensions
Methods
View SourceSetEndpoints(Segment, Vect, Vect)
Set the endpoints of a segment shape. This mutates collision shapes. Chipmunk can't get velocity information on changing shapes, so the results will be unrealistic.
Declaration
public static void SetEndpoints(this Segment segment, Vect a, Vect b)
Parameters
Type | Name | Description |
---|---|---|
Segment | segment | |
Vect | a | |
Vect | b |
SetRadius(Segment, double)
Set the radius of a segment shape. This mutates collision shapes. Chipmunk can't get velocity information on changing shapes, so the results will be unrealistic.
Declaration
public static void SetRadius(this Segment segment, double radius)
Parameters
Type | Name | Description |
---|---|---|
Segment | segment | |
double | radius |