C# 클래스 GGJ.Utils.Vector3Extensions

파일 보기 프로젝트 열기: TORISOUP/Born_to_Beans_src

공개 메소드들

메소드 설명
GetAround2D ( this origin, float radius ) : Vector3

指定座標の周辺ランダムで返す

GetDistance ( this origin, Vector3 target ) : float

ターゲットとの距離を返す

GetDistance2D ( this origin, Vector3 target ) : float

ターゲットとの高さを無視した距離を返す

GetTowardNormalizedVector ( this origin, Vector3 factor ) : Vector3

対象を指す方向ベクトルを計算する

ProductOneToOne ( this origin, Vector3 factor ) : Vector3

ベクトルを各要素1対1に掛け合わせる

ProductOneToOne ( this origin, float x, float y, float z ) : Vector3
SetX ( this origin, float X ) : Vector3

Xを上書きしたベクトルを返す

SetY ( this origin, float Y ) : Vector3
SetZ ( this origin, float Z ) : Vector3
SuppressY ( this origin ) : Vector3

Yを0にして、それを正規化したベクトルを返す

메소드 상세

GetAround2D() 공개 정적인 메소드

指定座標の周辺ランダムで返す
public static GetAround2D ( this origin, float radius ) : Vector3
origin this
radius float
리턴 UnityEngine.Vector3

GetDistance() 공개 정적인 메소드

ターゲットとの距離を返す
public static GetDistance ( this origin, Vector3 target ) : float
origin this
target UnityEngine.Vector3
리턴 float

GetDistance2D() 공개 정적인 메소드

ターゲットとの高さを無視した距離を返す
public static GetDistance2D ( this origin, Vector3 target ) : float
origin this
target UnityEngine.Vector3
리턴 float

GetTowardNormalizedVector() 공개 정적인 메소드

対象を指す方向ベクトルを計算する
public static GetTowardNormalizedVector ( this origin, Vector3 factor ) : Vector3
origin this
factor UnityEngine.Vector3
리턴 UnityEngine.Vector3

ProductOneToOne() 공개 정적인 메소드

ベクトルを各要素1対1に掛け合わせる
public static ProductOneToOne ( this origin, Vector3 factor ) : Vector3
origin this
factor UnityEngine.Vector3
리턴 UnityEngine.Vector3

ProductOneToOne() 공개 정적인 메소드

public static ProductOneToOne ( this origin, float x, float y, float z ) : Vector3
origin this
x float
y float
z float
리턴 UnityEngine.Vector3

SetX() 공개 정적인 메소드

Xを上書きしたベクトルを返す
public static SetX ( this origin, float X ) : Vector3
origin this
X float
리턴 UnityEngine.Vector3

SetY() 공개 정적인 메소드

public static SetY ( this origin, float Y ) : Vector3
origin this
Y float
리턴 UnityEngine.Vector3

SetZ() 공개 정적인 메소드

public static SetZ ( this origin, float Z ) : Vector3
origin this
Z float
리턴 UnityEngine.Vector3

SuppressY() 공개 정적인 메소드

Yを0にして、それを正規化したベクトルを返す
public static SuppressY ( this origin ) : Vector3
origin this
리턴 UnityEngine.Vector3