VectorExtensions

AUTO-GENERATED FILE – DO NOT EDIT MANUALLY

This page documents the supported public API surface only. Private, internal, benchmark, test, and implementation-detail types are intentionally omitted.

Declaration

1
public static class VectorExtensions

Summary

Extension methods for CoreVector2 and CoreVector2I.

Metadata

Namespace: GridPlacement.Core.Math

Source File: cs/Core/Math/VectorExtensions.cs

Assembly: GridPlacement.Core

Type: class

Methods

DistanceTo

1
2
3
4
public static float DistanceTo(
    this CoreVector2 a,
    CoreVector2 b
)

Returns the distance between two vectors.


DistanceSquaredTo

1
2
3
4
public static float DistanceSquaredTo(
    this CoreVector2 a,
    CoreVector2 b
)

Returns the squared distance between two vectors.


DistanceTo

1
2
3
4
public static float DistanceTo(
    this CoreVector2I a,
    CoreVector2I b
)

Returns the distance between two vectors.


DistanceSquaredTo

1
2
3
4
public static int DistanceSquaredTo(
    this CoreVector2I a,
    CoreVector2I b
)

Returns the squared distance between two vectors.