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

Public 成员函数

 CellFace (int x, int y, int z, int face)
 CellFace (Point3 point, int face)
Plane CalculatePlane ()
Vector3 GetFaceCenter (float offset=0f)
Vector3[] GetFourVertices (float size=1f, float offset=0f)
Vector3[] GetSixVertices (float size=1f, float offset=0f)
override int GetHashCode ()
override bool Equals (object obj)
bool Equals (CellFace other)
override string ToString ()

静态 Public 成员函数

static int OppositeFace (int face)
static Point3 FaceToPoint3 (int face)
static Vector3 FaceToVector3 (int face)
static int[] FaceToTangents (int face)
static int Point3ToFace (Point3 p, int maxFace=5)
static int Vector3ToFace (Vector3 v, int maxFace=5)
static CellFace FromAxisAndDirection (int x, int y, int z, int axis, float direction)
static bool operator== (CellFace c1, CellFace c2)
static bool operator!= (CellFace c1, CellFace c2)

Public 属性

int X
int Y
int Z
int Face

静态 Public 属性

static readonly int[] m_oppositeFaces = [2, 3, 0, 1, 5, 4]
static readonly Point3[] m_faceToPoint3 = [new(0, 0, 1), new(1, 0, 0), new(0, 0, -1), new(-1, 0, 0), new(0, 1, 0), new(0, -1, 0)]
static readonly Vector3[] m_faceToVector3
static readonly int[][] m_faceToTangents = [[1, 4, 3, 5], [4, 0, 5, 2], [4, 1, 5, 3], [0, 4, 2, 5], [0, 1, 2, 3], [1, 0, 3, 2]]

属性

Point3 Point [get, set]

详细描述

在文件 CellFace.cs4 行定义.

构造及析构函数说明

◆ CellFace() [1/2]

Game.CellFace.CellFace ( int x,
int y,
int z,
int face )

在文件 CellFace.cs32 行定义.

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

◆ CellFace() [2/2]

Game.CellFace.CellFace ( Point3 point,
int face )

在文件 CellFace.cs39 行定义.

成员函数说明

◆ CalculatePlane()

Plane Game.CellFace.CalculatePlane ( )

在文件 CellFace.cs89 行定义.

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

◆ Equals() [1/2]

bool Game.CellFace.Equals ( CellFace other)

在文件 CellFace.cs149 行定义.

函数调用图:

◆ Equals() [2/2]

override bool Game.CellFace.Equals ( object obj)

在文件 CellFace.cs142 行定义.

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

◆ FaceToPoint3()

Point3 Game.CellFace.FaceToPoint3 ( int face)
static

在文件 CellFace.cs48 行定义.

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

◆ FaceToTangents()

int[] Game.CellFace.FaceToTangents ( int face)
static

在文件 CellFace.cs52 行定义.

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

◆ FaceToVector3()

Vector3 Game.CellFace.FaceToVector3 ( int face)
static

在文件 CellFace.cs50 行定义.

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

◆ FromAxisAndDirection()

CellFace Game.CellFace.FromAxisAndDirection ( int x,
int y,
int z,
int axis,
float direction )
static

在文件 CellFace.cs76 行定义.

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

◆ GetFaceCenter()

Vector3 Game.CellFace.GetFaceCenter ( float offset = 0f)

在文件 CellFace.cs100 行定义.

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

◆ GetFourVertices()

Vector3[] Game.CellFace.GetFourVertices ( float size = 1f,
float offset = 0f )

在文件 CellFace.cs104 行定义.

函数调用图:

◆ GetHashCode()

override int Game.CellFace.GetHashCode ( )

在文件 CellFace.cs140 行定义.

◆ GetSixVertices()

Vector3[] Game.CellFace.GetSixVertices ( float size = 1f,
float offset = 0f )

在文件 CellFace.cs118 行定义.

函数调用图:

◆ operator!=()

bool Game.CellFace.operator!= ( CellFace c1,
CellFace c2 )
static

在文件 CellFace.cs162 行定义.

函数调用图:

◆ operator==()

bool Game.CellFace.operator== ( CellFace c1,
CellFace c2 )
static

在文件 CellFace.cs160 行定义.

函数调用图:

◆ OppositeFace()

int Game.CellFace.OppositeFace ( int face)
static

在文件 CellFace.cs46 行定义.

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

◆ Point3ToFace()

int Game.CellFace.Point3ToFace ( Point3 p,
int maxFace = 5 )
static

在文件 CellFace.cs54 行定义.

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

◆ ToString()

override string Game.CellFace.ToString ( )

在文件 CellFace.cs158 行定义.

◆ Vector3ToFace()

int Game.CellFace.Vector3ToFace ( Vector3 v,
int maxFace = 5 )
static

在文件 CellFace.cs63 行定义.

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

类成员变量说明

◆ Face

int Game.CellFace.Face

在文件 CellFace.cs11 行定义.

◆ m_faceToPoint3

readonly Point3 [] Game.CellFace.m_faceToPoint3 = [new(0, 0, 1), new(1, 0, 0), new(0, 0, -1), new(-1, 0, 0), new(0, 1, 0), new(0, -1, 0)]
static

在文件 CellFace.cs15 行定义.

◆ m_faceToTangents

readonly int [][] Game.CellFace.m_faceToTangents = [[1, 4, 3, 5], [4, 0, 5, 2], [4, 1, 5, 3], [0, 4, 2, 5], [0, 1, 2, 3], [1, 0, 3, 2]]
static

在文件 CellFace.cs21 行定义.

◆ m_faceToVector3

readonly Vector3 [] Game.CellFace.m_faceToVector3
static
初始值:
= [
new(0f, 0f, 1f), new(1f, 0f, 0f), new(0f, 0f, -1f), new(-1f, 0f, 0f), new(0f, 1f, 0f), new(0f, -1f, 0f)
]

在文件 CellFace.cs17 行定义.

◆ m_oppositeFaces

readonly int [] Game.CellFace.m_oppositeFaces = [2, 3, 0, 1, 5, 4]
static

在文件 CellFace.cs13 行定义.

◆ X

int Game.CellFace.X

在文件 CellFace.cs5 行定义.

◆ Y

int Game.CellFace.Y

在文件 CellFace.cs7 行定义.

◆ Z

int Game.CellFace.Z

在文件 CellFace.cs9 行定义.

属性说明

◆ Point

Point3 Game.CellFace.Point
getset

在文件 CellFace.cs23 行定义.


该结构体的文档由以下文件生成:
  • E:/sc/doxygen/SurvivalcraftApi 1.8.2.3/Survivalcraft.Windows/Game/CellFace.cs