Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
载入中...
搜索中...
未找到
Engine.Vector2
类 Engine.Vector2 继承关系图:
Engine.Vector2 的协作图:

Public 成员函数

 Vector2 (float v)
 Vector2 (float x, float y)
 Vector2 (Point2 p)
override bool Equals (object obj)
override int GetHashCode ()
override string ToString ()
bool Equals (Vector2 other)
float Length ()
float LengthSquared ()
Vector2 FixNaN ()
unsafe Span< float > AsSpan ()
unsafe float * AsPointer ()

静态 Public 成员函数

static implicit operator Vector2 ((float X, float Y) v)
static Vector2 CreateFromAngle (float angle)
static float Distance (Vector2 v1, Vector2 v2)
static float DistanceSquared (Vector2 v1, Vector2 v2)
static float Dot (Vector2 v1, Vector2 v2)
static float Cross (Vector2 v1, Vector2 v2)
static Vector2 Perpendicular (Vector2 v)
static Vector2 Rotate (Vector2 v, float angle)
static Vector2 Floor (Vector2 v)
static Vector2 Ceiling (Vector2 v)
static Vector2 Round (Vector2 v)
static Vector2 Min (Vector2 v, float f)
static Vector2 Min (Vector2 v1, Vector2 v2)
static Vector2 Max (Vector2 v, float f)
static Vector2 Max (Vector2 v1, Vector2 v2)
static Vector2 Clamp (Vector2 v, float min, float max)
static Vector2 Saturate (Vector2 v)
static Vector2 Lerp (Vector2 v1, Vector2 v2, float f)
static Vector2 CatmullRom (Vector2 v1, Vector2 v2, Vector2 v3, Vector2 v4, float f)
static Vector2 Normalize (Vector2 v)
static Vector2 LimitLength (Vector2 v, float maxLength)
static float Angle (Vector2 v1, Vector2 v2)
static Vector2 Transform (Vector2 v, Matrix m)
static void Transform (ref Vector2 v, ref Matrix m, out Vector2 result)
static Vector2 Transform (Vector2 v, Quaternion q)
static void Transform (ref Vector2 v, ref Quaternion q, out Vector2 result)
static void Transform (Vector2[] sourceArray, int sourceIndex, ref Matrix m, Vector2[] destinationArray, int destinationIndex, int count)
static Vector2 TransformNormal (Vector2 v, Matrix m)
static void TransformNormal (ref Vector2 v, ref Matrix m, out Vector2 result)
static void TransformNormal (Vector2[] sourceArray, int sourceIndex, ref Matrix m, Vector2[] destinationArray, int destinationIndex, int count)
static bool operator== (Vector2 v1, Vector2 v2)
static bool operator!= (Vector2 v1, Vector2 v2)
static Vector2 operator+ (Vector2 v)
static Vector2 operator- (Vector2 v)
static Vector2 operator+ (Vector2 v1, Vector2 v2)
static Vector2 operator- (Vector2 v1, Vector2 v2)
static Vector2 operator* (Vector2 v1, Vector2 v2)
static Vector2 operator* (Vector2 v, float s)
static Vector2 operator* (float s, Vector2 v)
static Vector2 operator/ (Vector2 v1, Vector2 v2)
static Vector2 operator/ (Vector2 v, float d)
static Vector2 operator/ (float d, Vector2 v)
static Vector2 FixNaN (Vector2 v)

Public 属性

float X
float Y

静态 Public 属性

static readonly Vector2 Zero = new(0f)
static readonly Vector2 One = new(1f)
static readonly Vector2 UnitX = new(1f, 0f)
static readonly Vector2 UnitY = new(0f, 1f)

属性

Vector2 YX [get, set]

详细描述

在文件 Vector2.cs2 行定义.

构造及析构函数说明

◆ Vector2() [1/3]

Engine.Vector2.Vector2 ( float v)

在文件 Vector2.cs23 行定义.

这是这个函数的调用关系图:

◆ Vector2() [2/3]

Engine.Vector2.Vector2 ( float x,
float y )

在文件 Vector2.cs28 行定义.

◆ Vector2() [3/3]

Engine.Vector2.Vector2 ( Point2 p)

在文件 Vector2.cs33 行定义.

成员函数说明

◆ Angle()

float Engine.Vector2.Angle ( Vector2 v1,
Vector2 v2 )
static

在文件 Vector2.cs108 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ AsPointer()

unsafe float * Engine.Vector2.AsPointer ( )

在文件 Vector2.cs236 行定义.

◆ AsSpan()

unsafe Span< float > Engine.Vector2.AsSpan ( )

在文件 Vector2.cs230 行定义.

◆ CatmullRom()

Vector2 Engine.Vector2.CatmullRom ( Vector2 v1,
Vector2 v2,
Vector2 v3,
Vector2 v4,
float f )
static

在文件 Vector2.cs93 行定义.

函数调用图:

◆ Ceiling()

Vector2 Engine.Vector2.Ceiling ( Vector2 v)
static

在文件 Vector2.cs75 行定义.

函数调用图:

◆ Clamp()

Vector2 Engine.Vector2.Clamp ( Vector2 v,
float min,
float max )
static

在文件 Vector2.cs87 行定义.

函数调用图:

◆ CreateFromAngle()

Vector2 Engine.Vector2.CreateFromAngle ( float angle)
static

在文件 Vector2.cs48 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ Cross()

float Engine.Vector2.Cross ( Vector2 v1,
Vector2 v2 )
static

在文件 Vector2.cs59 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ Distance()

float Engine.Vector2.Distance ( Vector2 v1,
Vector2 v2 )
static

在文件 Vector2.cs53 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ DistanceSquared()

float Engine.Vector2.DistanceSquared ( Vector2 v1,
Vector2 v2 )
static

在文件 Vector2.cs55 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ Dot()

float Engine.Vector2.Dot ( Vector2 v1,
Vector2 v2 )
static

在文件 Vector2.cs57 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ Equals() [1/2]

override bool Engine.Vector2.Equals ( object obj)

在文件 Vector2.cs40 行定义.

函数调用图:

◆ Equals() [2/2]

bool Engine.Vector2.Equals ( Vector2 other)

在文件 Vector2.cs46 行定义.

函数调用图:

◆ FixNaN() [1/2]

Vector2 Engine.Vector2.FixNaN ( )

在文件 Vector2.cs220 行定义.

函数调用图:

◆ FixNaN() [2/2]

Vector2 Engine.Vector2.FixNaN ( Vector2 v)
static

在文件 Vector2.cs210 行定义.

函数调用图:

◆ Floor()

Vector2 Engine.Vector2.Floor ( Vector2 v)
static

在文件 Vector2.cs73 行定义.

函数调用图:

◆ GetHashCode()

override int Engine.Vector2.GetHashCode ( )

在文件 Vector2.cs42 行定义.

◆ Length()

float Engine.Vector2.Length ( )

在文件 Vector2.cs69 行定义.

这是这个函数的调用关系图:

◆ LengthSquared()

float Engine.Vector2.LengthSquared ( )

在文件 Vector2.cs71 行定义.

这是这个函数的调用关系图:

◆ Lerp()

Vector2 Engine.Vector2.Lerp ( Vector2 v1,
Vector2 v2,
float f )
static

在文件 Vector2.cs91 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ LimitLength()

Vector2 Engine.Vector2.LimitLength ( Vector2 v,
float maxLength )
static

在文件 Vector2.cs103 行定义.

函数调用图:

◆ Max() [1/2]

Vector2 Engine.Vector2.Max ( Vector2 v,
float f )
static

在文件 Vector2.cs83 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ Max() [2/2]

Vector2 Engine.Vector2.Max ( Vector2 v1,
Vector2 v2 )
static

在文件 Vector2.cs85 行定义.

函数调用图:

◆ Min() [1/2]

Vector2 Engine.Vector2.Min ( Vector2 v,
float f )
static

在文件 Vector2.cs79 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ Min() [2/2]

Vector2 Engine.Vector2.Min ( Vector2 v1,
Vector2 v2 )
static

在文件 Vector2.cs81 行定义.

函数调用图:

◆ Normalize()

Vector2 Engine.Vector2.Normalize ( Vector2 v)
static

在文件 Vector2.cs98 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ operator Vector2()

implicit Engine.Vector2.operator Vector2 ( (float X, float Y) v)
static

在文件 Vector2.cs38 行定义.

◆ operator!=()

bool Engine.Vector2.operator!= ( Vector2 v1,
Vector2 v2 )
static

在文件 Vector2.cs185 行定义.

函数调用图:

◆ operator*() [1/3]

Vector2 Engine.Vector2.operator* ( float s,
Vector2 v )
static

在文件 Vector2.cs199 行定义.

函数调用图:

◆ operator*() [2/3]

Vector2 Engine.Vector2.operator* ( Vector2 v,
float s )
static

在文件 Vector2.cs197 行定义.

函数调用图:

◆ operator*() [3/3]

Vector2 Engine.Vector2.operator* ( Vector2 v1,
Vector2 v2 )
static

在文件 Vector2.cs195 行定义.

函数调用图:

◆ operator+() [1/2]

Vector2 Engine.Vector2.operator+ ( Vector2 v)
static

在文件 Vector2.cs187 行定义.

函数调用图:

◆ operator+() [2/2]

Vector2 Engine.Vector2.operator+ ( Vector2 v1,
Vector2 v2 )
static

在文件 Vector2.cs191 行定义.

函数调用图:

◆ operator-() [1/2]

Vector2 Engine.Vector2.operator- ( Vector2 v)
static

在文件 Vector2.cs189 行定义.

函数调用图:

◆ operator-() [2/2]

Vector2 Engine.Vector2.operator- ( Vector2 v1,
Vector2 v2 )
static

在文件 Vector2.cs193 行定义.

函数调用图:

◆ operator/() [1/3]

Vector2 Engine.Vector2.operator/ ( float d,
Vector2 v )
static

在文件 Vector2.cs208 行定义.

函数调用图:

◆ operator/() [2/3]

Vector2 Engine.Vector2.operator/ ( Vector2 v,
float d )
static

在文件 Vector2.cs203 行定义.

函数调用图:

◆ operator/() [3/3]

Vector2 Engine.Vector2.operator/ ( Vector2 v1,
Vector2 v2 )
static

在文件 Vector2.cs201 行定义.

函数调用图:

◆ operator==()

bool Engine.Vector2.operator== ( Vector2 v1,
Vector2 v2 )
static

在文件 Vector2.cs183 行定义.

函数调用图:

◆ Perpendicular()

Vector2 Engine.Vector2.Perpendicular ( Vector2 v)
static

在文件 Vector2.cs61 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ Rotate()

Vector2 Engine.Vector2.Rotate ( Vector2 v,
float angle )
static

在文件 Vector2.cs63 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ Round()

Vector2 Engine.Vector2.Round ( Vector2 v)
static

在文件 Vector2.cs77 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ Saturate()

Vector2 Engine.Vector2.Saturate ( Vector2 v)
static

在文件 Vector2.cs89 行定义.

函数调用图:

◆ ToString()

override string Engine.Vector2.ToString ( )

在文件 Vector2.cs44 行定义.

◆ Transform() [1/5]

void Engine.Vector2.Transform ( ref Vector2 v,
ref Matrix m,
out Vector2 result )
static

在文件 Vector2.cs122 行定义.

函数调用图:

◆ Transform() [2/5]

void Engine.Vector2.Transform ( ref Vector2 v,
ref Quaternion q,
out Vector2 result )
static

在文件 Vector2.cs138 行定义.

函数调用图:

◆ Transform() [3/5]

Vector2 Engine.Vector2.Transform ( Vector2 v,
Matrix m )
static

在文件 Vector2.cs120 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ Transform() [4/5]

Vector2 Engine.Vector2.Transform ( Vector2 v,
Quaternion q )
static

在文件 Vector2.cs126 行定义.

函数调用图:

◆ Transform() [5/5]

void Engine.Vector2.Transform ( Vector2[] sourceArray,
int sourceIndex,
ref Matrix m,
Vector2[] destinationArray,
int destinationIndex,
int count )
static

在文件 Vector2.cs150 行定义.

函数调用图:

◆ TransformNormal() [1/3]

void Engine.Vector2.TransformNormal ( ref Vector2 v,
ref Matrix m,
out Vector2 result )
static

在文件 Vector2.cs167 行定义.

函数调用图:

◆ TransformNormal() [2/3]

Vector2 Engine.Vector2.TransformNormal ( Vector2 v,
Matrix m )
static

在文件 Vector2.cs165 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ TransformNormal() [3/3]

void Engine.Vector2.TransformNormal ( Vector2[] sourceArray,
int sourceIndex,
ref Matrix m,
Vector2[] destinationArray,
int destinationIndex,
int count )
static

在文件 Vector2.cs171 行定义.

函数调用图:

类成员变量说明

◆ One

readonly Vector2 Engine.Vector2.One = new(1f)
static

在文件 Vector2.cs9 行定义.

◆ UnitX

readonly Vector2 Engine.Vector2.UnitX = new(1f, 0f)
static

在文件 Vector2.cs11 行定义.

◆ UnitY

readonly Vector2 Engine.Vector2.UnitY = new(0f, 1f)
static

在文件 Vector2.cs13 行定义.

◆ X

float Engine.Vector2.X

在文件 Vector2.cs3 行定义.

◆ Y

float Engine.Vector2.Y

在文件 Vector2.cs5 行定义.

◆ Zero

readonly Vector2 Engine.Vector2.Zero = new(0f)
static

在文件 Vector2.cs7 行定义.

属性说明

◆ YX

Vector2 Engine.Vector2.YX
getset

在文件 Vector2.cs15 行定义.


该结构体的文档由以下文件生成:
  • E:/sc/doxygen/SurvivalcraftApi 1.8.2.3/Engine/Engine/Vector2.cs