docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SensorUnitConversion

    Provides unit conversion utilities for sensor measurements.

    Inheritance
    object
    SensorUnitConversion
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Global Namespace
    Assembly: Unity.SimulationPro.Sensors.dll
    Syntax
    public static class SensorUnitConversion

    Methods

    ConvertAngleUnit(AngleUnit, float)

    Converts an angle from its current unit to the specified target unit.

    Declaration
    public static float ConvertAngleUnit(SensorUnitConversion.AngleUnit newUnit, float angle)
    Parameters
    Type Name Description
    SensorUnitConversion.AngleUnit newUnit

    The target angle unit.

    float angle

    The angle value to convert, in the opposite unit of newUnit.

    Returns
    Type Description
    float

    The converted angle in newUnit.

    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)