Class SegmentExtensions

    Definition

    Namespace:
    Tizen.NUI.Physics2D.Chipmunk.Unsafe
    Assembly:
    Tizen.NUI.Physics2D.dll

    Unsafe extensions methods for the Segment shape.

    public static class SegmentExtensions
    Inheritance
    object
    SegmentExtensions

    Methods

    View Source

    SetEndpoints(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
    View Source

    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
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX