C# Класс NidaleeTheBestialHuntress.VectorHelper

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetFirstWallPoint ( System.Vector2 from, System.Vector2 to, float step = 25 ) : Vector2?
GetFirstWallPoint ( System.Vector3 from, System.Vector3 to, float step = 25 ) : Vector2?
IsLyingInCone ( System.Vector2 position, System.Vector2 apexPoint, System.Vector2 circleCenter, double aperture ) : bool

Приватные методы

Метод Описание
DotProd ( System.Vector2 a, System.Vector2 b ) : float
Magn ( System.Vector2 a ) : float

Описание методов

GetFirstWallPoint() публичный статический Метод

public static GetFirstWallPoint ( System.Vector2 from, System.Vector2 to, float step = 25 ) : Vector2?
from System.Vector2
to System.Vector2
step float
Результат Vector2?

GetFirstWallPoint() публичный статический Метод

public static GetFirstWallPoint ( System.Vector3 from, System.Vector3 to, float step = 25 ) : Vector2?
from System.Vector3
to System.Vector3
step float
Результат Vector2?

IsLyingInCone() публичный статический Метод

public static IsLyingInCone ( System.Vector2 position, System.Vector2 apexPoint, System.Vector2 circleCenter, double aperture ) : bool
position System.Vector2
apexPoint System.Vector2
circleCenter System.Vector2
aperture double
Результат bool