Search Results for

    Show / Hide Table of Contents

    Class KaijuAgentsBetween

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

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

    Methods

    Between(Component, Component, Single, Single)

    If this is between two distances to another position.

    Declaration
    public static bool Between(this Component self, Component other, float minimum, float maximum)
    Parameters
    Type Name Description
    Component self

    This position.

    Component other

    The other position.

    System.Single minimum

    The minimum distance.

    System.Single maximum

    The maximum distance.

    Returns
    Type Description
    System.Boolean

    If this is between two distances to another position.

    Between(Component, GameObject, Single, Single)

    If this is between two distances to another position.

    Declaration
    public static bool Between(this Component self, GameObject other, float minimum, float maximum)
    Parameters
    Type Name Description
    Component self

    This position.

    GameObject other

    The other position.

    System.Single minimum

    The minimum distance.

    System.Single maximum

    The maximum distance.

    Returns
    Type Description
    System.Boolean

    If this is between two distances to another position.

    Between(Component, Transform, Single, Single)

    If this is between two distances to another position.

    Declaration
    public static bool Between(this Component self, Transform other, float minimum, float maximum)
    Parameters
    Type Name Description
    Component self

    This position.

    Transform other

    The other position.

    System.Single minimum

    The minimum distance.

    System.Single maximum

    The maximum distance.

    Returns
    Type Description
    System.Boolean

    If this is between two distances to another position.

    Between(Component, Vector2, Single, Single)

    If this is between two distances to another position.

    Declaration
    public static bool Between(this Component self, Vector2 other, float minimum, float maximum)
    Parameters
    Type Name Description
    Component self

    This position.

    Vector2 other

    The other position.

    System.Single minimum

    The minimum distance.

    System.Single maximum

    The maximum distance.

    Returns
    Type Description
    System.Boolean

    If this is between two distances to another position.

    Between(Component, Vector3, Single, Single)

    If this is between two distances to another position.

    Declaration
    public static bool Between(this Component self, Vector3 other, float minimum, float maximum)
    Parameters
    Type Name Description
    Component self

    This position.

    Vector3 other

    The other position.

    System.Single minimum

    The minimum distance.

    System.Single maximum

    The maximum distance.

    Returns
    Type Description
    System.Boolean

    If this is between two distances to another position.

    Between(GameObject, Component, Single, Single)

    If this is between two distances to another position.

    Declaration
    public static bool Between(this GameObject self, Component other, float minimum, float maximum)
    Parameters
    Type Name Description
    GameObject self

    This position.

    Component other

    The other position.

    System.Single minimum

    The minimum distance.

    System.Single maximum

    The maximum distance.

    Returns
    Type Description
    System.Boolean

    If this is between two distances to another position.

    Between(GameObject, GameObject, Single, Single)

    If this is between two distances to another position.

    Declaration
    public static bool Between(this GameObject self, GameObject other, float minimum, float maximum)
    Parameters
    Type Name Description
    GameObject self

    This position.

    GameObject other

    The other position.

    System.Single minimum

    The minimum distance.

    System.Single maximum

    The maximum distance.

    Returns
    Type Description
    System.Boolean

    If this is between two distances to another position.

    Between(GameObject, Transform, Single, Single)

    If this is between two distances to another position.

    Declaration
    public static bool Between(this GameObject self, Transform other, float minimum, float maximum)
    Parameters
    Type Name Description
    GameObject self

    This position.

    Transform other

    The other position.

    System.Single minimum

    The minimum distance.

    System.Single maximum

    The maximum distance.

    Returns
    Type Description
    System.Boolean

    If this is between two distances to another position.

    Between(GameObject, Vector2, Single, Single)

    If this is between two distances to another position.

    Declaration
    public static bool Between(this GameObject self, Vector2 other, float minimum, float maximum)
    Parameters
    Type Name Description
    GameObject self

    This position.

    Vector2 other

    The other position.

    System.Single minimum

    The minimum distance.

    System.Single maximum

    The maximum distance.

    Returns
    Type Description
    System.Boolean

    If this is between two distances to another position.

    Between(GameObject, Vector3, Single, Single)

    If this is between two distances to another position.

    Declaration
    public static bool Between(this GameObject self, Vector3 other, float minimum, float maximum)
    Parameters
    Type Name Description
    GameObject self

    This position.

    Vector3 other

    The other position.

    System.Single minimum

    The minimum distance.

    System.Single maximum

    The maximum distance.

    Returns
    Type Description
    System.Boolean

    If this is between two distances to another position.

    Between(Transform, Component, Single, Single)

    If this is between two distances to another position.

    Declaration
    public static bool Between(this Transform self, Component other, float minimum, float maximum)
    Parameters
    Type Name Description
    Transform self

    This position.

    Component other

    The other position.

    System.Single minimum

    The minimum distance.

    System.Single maximum

    The maximum distance.

    Returns
    Type Description
    System.Boolean

    If this is between two distances to another position.

    Between(Transform, GameObject, Single, Single)

    If this is between two distances to another position.

    Declaration
    public static bool Between(this Transform self, GameObject other, float minimum, float maximum)
    Parameters
    Type Name Description
    Transform self

    This position.

    GameObject other

    The other position.

    System.Single minimum

    The minimum distance.

    System.Single maximum

    The maximum distance.

    Returns
    Type Description
    System.Boolean

    If this is between two distances to another position.

    Between(Transform, Transform, Single, Single)

    If this is between two distances to another position.

    Declaration
    public static bool Between(this Transform self, Transform other, float minimum, float maximum)
    Parameters
    Type Name Description
    Transform self

    This position.

    Transform other

    The other position.

    System.Single minimum

    The minimum distance.

    System.Single maximum

    The maximum distance.

    Returns
    Type Description
    System.Boolean

    If this is between two distances to another position.

    Between(Transform, Vector2, Single, Single)

    If this is between two distances to another position.

    Declaration
    public static bool Between(this Transform self, Vector2 other, float minimum, float maximum)
    Parameters
    Type Name Description
    Transform self

    This position.

    Vector2 other

    The other position.

    System.Single minimum

    The minimum distance.

    System.Single maximum

    The maximum distance.

    Returns
    Type Description
    System.Boolean

    If this is between two distances to another position.

    Between(Transform, Vector3, Single, Single)

    If this is between two distances to another position.

    Declaration
    public static bool Between(this Transform self, Vector3 other, float minimum, float maximum)
    Parameters
    Type Name Description
    Transform self

    This position.

    Vector3 other

    The other position.

    System.Single minimum

    The minimum distance.

    System.Single maximum

    The maximum distance.

    Returns
    Type Description
    System.Boolean

    If this is between two distances to another position.

    Between(Vector2, Component, Single, Single)

    If this is between two distances to another position.

    Declaration
    public static bool Between(this Vector2 self, Component other, float minimum, float maximum)
    Parameters
    Type Name Description
    Vector2 self

    This position.

    Component other

    The other position.

    System.Single minimum

    The minimum distance.

    System.Single maximum

    The maximum distance.

    Returns
    Type Description
    System.Boolean

    If this is between two distances to another position.

    Between(Vector2, GameObject, Single, Single)

    If this is between two distances to another position.

    Declaration
    public static bool Between(this Vector2 self, GameObject other, float minimum, float maximum)
    Parameters
    Type Name Description
    Vector2 self

    This position.

    GameObject other

    The other position.

    System.Single minimum

    The minimum distance.

    System.Single maximum

    The maximum distance.

    Returns
    Type Description
    System.Boolean

    If this is between two distances to another position.

    Between(Vector2, Transform, Single, Single)

    If this is between two distances to another position.

    Declaration
    public static bool Between(this Vector2 self, Transform other, float minimum, float maximum)
    Parameters
    Type Name Description
    Vector2 self

    This position.

    Transform other

    The other position.

    System.Single minimum

    The minimum distance.

    System.Single maximum

    The maximum distance.

    Returns
    Type Description
    System.Boolean

    If this is between two distances to another position.

    Between(Vector2, Vector2, Single, Single)

    If this is between two distances to another position.

    Declaration
    public static bool Between(this Vector2 self, Vector2 other, float minimum, float maximum)
    Parameters
    Type Name Description
    Vector2 self

    This position.

    Vector2 other

    The other position.

    System.Single minimum

    The minimum distance.

    System.Single maximum

    The maximum distance.

    Returns
    Type Description
    System.Boolean

    If this is between two distances to another position.

    Between(Vector2, Vector3, Single, Single)

    If this is between two distances to another position.

    Declaration
    public static bool Between(this Vector2 self, Vector3 other, float minimum, float maximum)
    Parameters
    Type Name Description
    Vector2 self

    This position.

    Vector3 other

    The other position.

    System.Single minimum

    The minimum distance.

    System.Single maximum

    The maximum distance.

    Returns
    Type Description
    System.Boolean

    If this is between two distances to another position.

    Between(Vector3, Component, Single, Single)

    If this is between two distances to another position.

    Declaration
    public static bool Between(this Vector3 self, Component other, float minimum, float maximum)
    Parameters
    Type Name Description
    Vector3 self

    This position.

    Component other

    The other position.

    System.Single minimum

    The minimum distance.

    System.Single maximum

    The maximum distance.

    Returns
    Type Description
    System.Boolean

    If this is between two distances to another position.

    Between(Vector3, GameObject, Single, Single)

    If this is between two distances to another position.

    Declaration
    public static bool Between(this Vector3 self, GameObject other, float minimum, float maximum)
    Parameters
    Type Name Description
    Vector3 self

    This position.

    GameObject other

    The other position.

    System.Single minimum

    The minimum distance.

    System.Single maximum

    The maximum distance.

    Returns
    Type Description
    System.Boolean

    If this is between two distances to another position.

    Between(Vector3, Transform, Single, Single)

    If this is between two distances to another position.

    Declaration
    public static bool Between(this Vector3 self, Transform other, float minimum, float maximum)
    Parameters
    Type Name Description
    Vector3 self

    This position.

    Transform other

    The other position.

    System.Single minimum

    The minimum distance.

    System.Single maximum

    The maximum distance.

    Returns
    Type Description
    System.Boolean

    If this is between two distances to another position.

    Between(Vector3, Vector2, Single, Single)

    If this is between two distances to another position.

    Declaration
    public static bool Between(this Vector3 self, Vector2 other, float minimum, float maximum)
    Parameters
    Type Name Description
    Vector3 self

    This position.

    Vector2 other

    The other position.

    System.Single minimum

    The minimum distance.

    System.Single maximum

    The maximum distance.

    Returns
    Type Description
    System.Boolean

    If this is between two distances to another position.

    Between(Vector3, Vector3, Single, Single)

    If this is between two distances to another position.

    Declaration
    public static bool Between(this Vector3 self, Vector3 other, float minimum, float maximum)
    Parameters
    Type Name Description
    Vector3 self

    This position.

    Vector3 other

    The other position.

    System.Single minimum

    The minimum distance.

    System.Single maximum

    The maximum distance.

    Returns
    Type Description
    System.Boolean

    If this is between two distances to another position.

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