docs.unity3d.com
    Show / Hide Table of Contents

    Class UnityVectorExtensionTests

    Inheritance
    Object
    UnityVectorExtensionTests
    Namespace: Tests.Editor
    Syntax
    public class UnityVectorExtensionTests

    Methods

    FindIntersectionTest(Vector2, Vector2, Vector2, Vector2, Int32, UnityVectorExtensionTests.IntersectionResult)

    Declaration
    public void FindIntersectionTest(Vector2 l1_p1, Vector2 l1_p2, Vector2 l2_p1, Vector2 l2_p2, int expectedIntersectionType, UnityVectorExtensionTests.IntersectionResult expectedIntersectionResult)
    Parameters
    Type Name Description
    Vector2 l1_p1
    Vector2 l1_p2
    Vector2 l2_p1
    Vector2 l2_p2
    Int32 expectedIntersectionType
    UnityVectorExtensionTests.IntersectionResult expectedIntersectionResult

    TestAngle(Vector2, Single, Boolean)

    Declaration
    public void TestAngle(Vector2 v2, float expectedAngle, bool compareWithBuiltIn)
    Parameters
    Type Name Description
    Vector2 v2
    Single expectedAngle
    Boolean compareWithBuiltIn

    TestSignedAngle(Vector2, Single, Boolean)

    Declaration
    public void TestSignedAngle(Vector2 v2, float expectedAngle, bool compareWithBuiltIn)
    Parameters
    Type Name Description
    Vector2 v2
    Single expectedAngle
    Boolean compareWithBuiltIn
    Back to top
    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