Search Results for

    Show / Hide Table of Contents

    Method DistanceSquared

    DistanceSquared(Vector3, Vector3)

    Calculates the squared distance between two vectors.

    Declaration
    public static float DistanceSquared(Vector3 position1, Vector3 position2)
    Parameters
    Type Name Description
    Vector3 position1

    The first vector to calculate the squared distance to the second vector.

    Vector3 position2

    The second vector to calculate the squared distance to the first vector.

    Returns
    Type Description
    System.Single

    The squared distance between the two vectors.

    ☀
    ☾
    Back to top Copyright (C) 2015 crosire - zlib
    Generated with DocFX