docs.unity3d.com
    Show / Hide Table of Contents

    Class ScanPatterns

    The role of this class is to provide common tools used by all scan pattern.

    Inheritance
    Object
    ScanPatterns
    Namespace: Mechatronics.SensorSDK
    Syntax
    public class ScanPatterns

    Methods

    CatPattern(Single, Single, Single, Single, Single)

    Provide an orientation that follows rotation on two axis.

    Declaration
    public static Quaternion CatPattern(float t, float omegaYaw = 6.28318548F, float yawPhase = 0F, float omegaPitch = 31.4159279F, float pitchAmplitude = 0.08726647F)
    Parameters
    Type Name Description
    Single t

    Time elapsed since the beginning in second.

    Single omegaYaw

    Angle per second arround the Y axis.

    Single yawPhase

    Offset at starting time in seconds.

    Single omegaPitch

    Angle per second arround the X axis.

    Single pitchAmplitude

    Scale on the final anagle.

    Returns
    Type Description
    Quaternion

    An orientation pointing outside form the center represented by a quaternion.

    CircularPattern(Single, Single, Single)

    Provide the orientation on a circle.

    Declaration
    public static Quaternion CircularPattern(float t, float omegaYaw = 6.28318548F, float phase = 0F)
    Parameters
    Type Name Description
    Single t

    Time elapsed since the beginning in second.

    Single omegaYaw

    Angle per second arround the Y axis.

    Single phase

    Offset at starting time in seconds.

    Returns
    Type Description
    Quaternion

    An orientation pointing outside the circle form the center represented by a quaternion.

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023