Search Results for

    Show / Hide Table of Contents

    Class KaijuAgentsBeyond

    Extension methods to see if points are beyond a given distance of each other along the X and Z axes. These methods are inclusive of the distance to check. All three-dimensional vectors will be flattened via methods in KaijuAgentsFlatten.

    Inheritance
    System.Object
    KaijuAgentsBeyond
    Namespace: KaijuSolutions.Agents.Extensions
    Syntax
    public static class KaijuAgentsBeyond

    Methods

    Beyond(Component, Component, Single)

    If this is beyond a distance to another position.

    Declaration
    public static bool Beyond(this Component self, Component other, float distance)
    Parameters
    Type Name Description
    Component self

    This object.

    Component other

    The other position.

    System.Single distance

    The distance.

    Returns
    Type Description
    System.Boolean

    If this is beyond a distance to another position.

    Beyond(Component, GameObject, Single)

    If this is beyond a distance to another position.

    Declaration
    public static bool Beyond(this Component self, GameObject other, float distance)
    Parameters
    Type Name Description
    Component self

    This object.

    GameObject other

    The other position.

    System.Single distance

    The distance.

    Returns
    Type Description
    System.Boolean

    If this is beyond a distance to another position.

    Beyond(Component, Transform, Single)

    If this is beyond a distance to another position.

    Declaration
    public static bool Beyond(this Component self, Transform other, float distance)
    Parameters
    Type Name Description
    Component self

    This object.

    Transform other

    The other position.

    System.Single distance

    The distance.

    Returns
    Type Description
    System.Boolean

    If this is beyond a distance to another position.

    Beyond(Component, Vector2, Single)

    If this is beyond a distance to another position.

    Declaration
    public static bool Beyond(this Component self, Vector2 other, float distance)
    Parameters
    Type Name Description
    Component self

    This object.

    Vector2 other

    The other position.

    System.Single distance

    The distance.

    Returns
    Type Description
    System.Boolean

    If this is beyond a distance to another position.

    Beyond(Component, Vector3, Single)

    If this is beyond a distance to another position.

    Declaration
    public static bool Beyond(this Component self, Vector3 other, float distance)
    Parameters
    Type Name Description
    Component self

    This object.

    Vector3 other

    The other position.

    System.Single distance

    The distance.

    Returns
    Type Description
    System.Boolean

    If this is beyond a distance to another position.

    Beyond(GameObject, Component, Single)

    If this is beyond a distance to another position.

    Declaration
    public static bool Beyond(this GameObject self, Component other, float distance)
    Parameters
    Type Name Description
    GameObject self

    This object.

    Component other

    The other position.

    System.Single distance

    The distance.

    Returns
    Type Description
    System.Boolean

    If this is beyond a distance to another position.

    Beyond(GameObject, GameObject, Single)

    If this is beyond a distance to another position.

    Declaration
    public static bool Beyond(this GameObject self, GameObject other, float distance)
    Parameters
    Type Name Description
    GameObject self

    This object.

    GameObject other

    The other position.

    System.Single distance

    The distance.

    Returns
    Type Description
    System.Boolean

    If this is beyond a distance to another position.

    Beyond(GameObject, Transform, Single)

    If this is beyond a distance to another position.

    Declaration
    public static bool Beyond(this GameObject self, Transform other, float distance)
    Parameters
    Type Name Description
    GameObject self

    This object.

    Transform other

    The other position.

    System.Single distance

    The distance.

    Returns
    Type Description
    System.Boolean

    If this is beyond a distance to another position.

    Beyond(GameObject, Vector2, Single)

    If this is beyond a distance to another position.

    Declaration
    public static bool Beyond(this GameObject self, Vector2 other, float distance)
    Parameters
    Type Name Description
    GameObject self

    This object.

    Vector2 other

    The other position.

    System.Single distance

    The distance.

    Returns
    Type Description
    System.Boolean

    If this is beyond a distance to another position.

    Beyond(GameObject, Vector3, Single)

    If this is beyond a distance to another position.

    Declaration
    public static bool Beyond(this GameObject self, Vector3 other, float distance)
    Parameters
    Type Name Description
    GameObject self

    This object.

    Vector3 other

    The other position.

    System.Single distance

    The distance.

    Returns
    Type Description
    System.Boolean

    If this is beyond a distance to another position.

    Beyond(Transform, Component, Single)

    If this is beyond a distance to another position.

    Declaration
    public static bool Beyond(this Transform self, Component other, float distance)
    Parameters
    Type Name Description
    Transform self

    This object.

    Component other

    The other position.

    System.Single distance

    The distance.

    Returns
    Type Description
    System.Boolean

    If this is beyond a distance to another position.

    Beyond(Transform, GameObject, Single)

    If this is beyond a distance to another position.

    Declaration
    public static bool Beyond(this Transform self, GameObject other, float distance)
    Parameters
    Type Name Description
    Transform self

    This object.

    GameObject other

    The other position.

    System.Single distance

    The distance.

    Returns
    Type Description
    System.Boolean

    If this is beyond a distance to another position.

    Beyond(Transform, Transform, Single)

    If this is beyond a distance to another position.

    Declaration
    public static bool Beyond(this Transform self, Transform other, float distance)
    Parameters
    Type Name Description
    Transform self

    This object.

    Transform other

    The other position.

    System.Single distance

    The distance.

    Returns
    Type Description
    System.Boolean

    If this is beyond a distance to another position.

    Beyond(Transform, Vector2, Single)

    If this is beyond a distance to another position.

    Declaration
    public static bool Beyond(this Transform self, Vector2 other, float distance)
    Parameters
    Type Name Description
    Transform self

    This object.

    Vector2 other

    The other position.

    System.Single distance

    The distance.

    Returns
    Type Description
    System.Boolean

    If this is beyond a distance to another position.

    Beyond(Transform, Vector3, Single)

    If this is beyond a distance to another position.

    Declaration
    public static bool Beyond(this Transform self, Vector3 other, float distance)
    Parameters
    Type Name Description
    Transform self

    This object.

    Vector3 other

    The other position.

    System.Single distance

    The distance.

    Returns
    Type Description
    System.Boolean

    If this is beyond a distance to another position.

    Beyond(Vector2, Component, Single)

    If this is beyond a distance to another position.

    Declaration
    public static bool Beyond(this Vector2 self, Component other, float distance)
    Parameters
    Type Name Description
    Vector2 self

    This position.

    Component other

    The other position.

    System.Single distance

    The distance.

    Returns
    Type Description
    System.Boolean

    If this is beyond a distance to another position.

    Beyond(Vector2, GameObject, Single)

    If this is beyond a distance to another position.

    Declaration
    public static bool Beyond(this Vector2 self, GameObject other, float distance)
    Parameters
    Type Name Description
    Vector2 self

    This position.

    GameObject other

    The other position.

    System.Single distance

    The distance.

    Returns
    Type Description
    System.Boolean

    If this is beyond a distance to another position.

    Beyond(Vector2, Transform, Single)

    If this is beyond a distance to another position.

    Declaration
    public static bool Beyond(this Vector2 self, Transform other, float distance)
    Parameters
    Type Name Description
    Vector2 self

    This position.

    Transform other

    The other position.

    System.Single distance

    The distance.

    Returns
    Type Description
    System.Boolean

    If this is beyond a distance to another position.

    Beyond(Vector2, Vector2, Single)

    If this is beyond a distance to another position.

    Declaration
    public static bool Beyond(this Vector2 self, Vector2 other, float distance)
    Parameters
    Type Name Description
    Vector2 self

    This position.

    Vector2 other

    The other position.

    System.Single distance

    The distance.

    Returns
    Type Description
    System.Boolean

    If this is beyond a distance to another position.

    Beyond(Vector2, Vector3, Single)

    If this is beyond a distance to another position.

    Declaration
    public static bool Beyond(this Vector2 self, Vector3 other, float distance)
    Parameters
    Type Name Description
    Vector2 self

    This position.

    Vector3 other

    The other position.

    System.Single distance

    The distance.

    Returns
    Type Description
    System.Boolean

    If this is beyond a distance to another position.

    Beyond(Vector3, Component, Single)

    If this is beyond a distance to another position.

    Declaration
    public static bool Beyond(this Vector3 self, Component other, float distance)
    Parameters
    Type Name Description
    Vector3 self

    This position.

    Component other

    The other position.

    System.Single distance

    The distance.

    Returns
    Type Description
    System.Boolean

    If this is beyond a distance to another position.

    Beyond(Vector3, GameObject, Single)

    If this is beyond a distance to another position.

    Declaration
    public static bool Beyond(this Vector3 self, GameObject other, float distance)
    Parameters
    Type Name Description
    Vector3 self

    This position.

    GameObject other

    The other position.

    System.Single distance

    The distance.

    Returns
    Type Description
    System.Boolean

    If this is beyond a distance to another position.

    Beyond(Vector3, Transform, Single)

    If this is beyond a distance to another position.

    Declaration
    public static bool Beyond(this Vector3 self, Transform other, float distance)
    Parameters
    Type Name Description
    Vector3 self

    This position.

    Transform other

    The other position.

    System.Single distance

    The distance.

    Returns
    Type Description
    System.Boolean

    If this is beyond a distance to another position.

    Beyond(Vector3, Vector2, Single)

    If this is beyond a distance to another position.

    Declaration
    public static bool Beyond(this Vector3 self, Vector2 other, float distance)
    Parameters
    Type Name Description
    Vector3 self

    This position.

    Vector2 other

    The other position.

    System.Single distance

    The distance.

    Returns
    Type Description
    System.Boolean

    If this is beyond a distance to another position.

    Beyond(Vector3, Vector3, Single)

    If this is beyond a distance to another position.

    Declaration
    public static bool Beyond(this Vector3 self, Vector3 other, float distance)
    Parameters
    Type Name Description
    Vector3 self

    This position.

    Vector3 other

    The other position.

    System.Single distance

    The distance.

    Returns
    Type Description
    System.Boolean

    If this is beyond a distance to another position.

    In This Article
    Back to top MIT License © 2026 Kaiju Solutions Inc.