Show / Hide Table of Contents

    Struct JointAngularLimit

    A angular limit.

    Namespace: Motphys.Rigidbody
    Assembly: solution.dll
    Syntax
    [Serializable]
    public struct JointAngularLimit

    Constructors

    JointAngularLimit(Single, Single)

    Create a limit with the given low and high bounds.

    Declaration
    public JointAngularLimit(float low, float high)
    Parameters
    Type Name Description
    System.Single low
    System.Single high
    Exceptions
    Type Condition
    System.ArgumentException

    Thrown if the low bound is less than -180, the high bound is greater than 180, or the low bound is greater than the high bound.

    Fields

    Default

    Declaration
    public static readonly JointAngularLimit Default
    Field Value
    Type Description
    JointAngularLimit

    A default limit in [-180,180].

    One

    Declaration
    public static readonly JointAngularLimit One
    Field Value
    Type Description
    JointAngularLimit

    An one limit in [-1,1].

    ZERO

    Declaration
    public static readonly JointAngularLimit ZERO
    Field Value
    Type Description
    JointAngularLimit

    A zero limit in [0,0].

    Properties

    high

    Declaration
    public float high { get; }
    Property Value
    Type Description
    System.Single

    The high bound of the limit in degrees.

    low

    Declaration
    public float low { get; }
    Property Value
    Type Description
    System.Single

    The low bound of the limit in degrees.

    span

    Declaration
    public float span { get; }
    Property Value
    Type Description
    System.Single

    The span of the limit in degrees. Calculated as high - low.

    Methods

    Validate()

    Clamp the low and high bounds to valid values.

    Declaration
    public void Validate()
    Back to top Copyright © 2020-2024 北京谋先飞技术有限公司及其关联公司北京谋先飞科技有限公司
    Generated by DocFX