Class Box

    Definition

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

    A retangular shape shape

    public class Box : Shape
    Inheritance
    object
    Shape
    Box

    Constructors

    View Source

    Box(Body, double, double, double)

    Create and initialize a box polygon shape.

    Declaration
    public Box(Body body, double width, double height, double radius)
    Parameters
    Type Name Description
    Body body
    double width
    double height
    double radius
    View Source

    Box(Body, BoundingBox, double)

    Create and initialize an offset box polygon shape.

    Declaration
    public Box(Body body, BoundingBox box, double radius)
    Parameters
    Type Name Description
    Body body
    BoundingBox box
    double radius

    Methods

    View Source

    MomentForBox(double, double, double)

    Calculate the moment of inertia for a solid box.

    Declaration
    public static double MomentForBox(double mass, double width, double height)
    Parameters
    Type Name Description
    double mass
    double width
    double height
    Returns
    Type Description
    double
    View Source

    MomentForBox(double, BoundingBox)

    Calculate the moment of inertia for a solid box.

    Declaration
    public static double MomentForBox(double mass, BoundingBox boundingBox)
    Parameters
    Type Name Description
    double mass
    BoundingBox boundingBox
    Returns
    Type Description
    double

    Extension Methods

    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    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