logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityNumericsVectorUtils

    Hands engine vectors to the engine-free geometry in Business, which speaks System.Numerics types only, and takes the points and directions it answers with back.

    Inheritance
    object
    UnityNumericsVectorUtils
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Global.Infrastructure.Utils
    Assembly: Serenity.UnityGlobal.Infrastructure.dll
    Syntax
    public static class UnityNumericsVectorUtils

    Methods

    ToNumerics(Vector3)

    The same point or direction as a Vector3, component by component.

    Declaration
    public static Vector3 ToNumerics(this Vector3 vector)
    Parameters
    Type Name Description
    Vector3 vector
    Returns
    Type Description
    Vector3

    ToUnity(Vector3)

    The same point or direction as a UnityEngine.Vector3, component by component.

    Declaration
    public static Vector3 ToUnity(this Vector3 vector)
    Parameters
    Type Name Description
    Vector3 vector
    Returns
    Type Description
    Vector3
    In this article
    © 2026 Serenity. All Rights Reserved