Class Circle

    Definition

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

    A circle shape defined by a radius This is the fastest and simplest collision shape

    public class Circle : Shape
    Inheritance
    object
    Shape
    Circle

    Constructors

    View Source

    Circle(Body, double, Vect)

    Create and initialize an offset circle polygon shape.

    Declaration
    public Circle(Body body, double radius, Vect offset)
    Parameters
    Type Name Description
    Body body

    The body to attach the circle to.

    double radius

    The radius of the circle.

    Vect offset

    The offset from the body's center of gravity in coordinates local to the body.

    View Source

    Circle(Body, double)

    Create and initialize a circle polygon shape.

    Declaration
    public Circle(Body body, double radius)
    Parameters
    Type Name Description
    Body body

    The body to attach the circle to.

    double radius

    The radius of the circle.

    Properties

    View Source

    Area

    Get the calculated area of the circle.

    Declaration
    public double Area { get; }
    Property Value
    Type Description
    double
    View Source

    Offset

    Get the offset of the circle.

    Declaration
    public Vect Offset { get; }
    Property Value
    Type Description
    Vect
    View Source

    Radius

    Get the radius of the circle.

    Declaration
    public double Radius { get; }
    Property Value
    Type Description
    double

    Methods

    View Source

    AreaForCircle(double, double)

    Calculate the area of a circle or donut.

    Declaration
    public static double AreaForCircle(double innerRadius, double radius)
    Parameters
    Type Name Description
    double innerRadius

    The radius of the 'donut hole', which defines the area missing.

    double radius

    The outer radius of the donut. This should be greater than the innerRadius.

    Returns
    Type Description
    double
    View Source

    MomentForCircle(double, double, double, Vect)

    Calculate the moment of inertia for the circle.

    Declaration
    public static double MomentForCircle(double mass, double innerRadius, double radius, Vect offset)
    Parameters
    Type Name Description
    double mass
    double innerRadius
    double radius
    Vect offset
    Returns
    Type Description
    double
    View Source

    MomentForCircle(double, double, Vect)

    Calculate the moment of inertia for the circle.

    Declaration
    public static double MomentForCircle(double mass, double radius, Vect offset)
    Parameters
    Type Name Description
    double mass
    double radius
    Vect offset
    Returns
    Type Description
    double
    View Source

    MomentForMass(double)

    Calculate the moment of the circle for the given mass.

    Declaration
    public double MomentForMass(double mass)
    Parameters
    Type Name Description
    double mass
    Returns
    Type Description
    double

    Extension Methods

    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    CircleExtensions.SetOffset(Circle, Vect)
    CircleExtensions.SetRadius(Circle, double)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX