본문으로 건너뛰기

Grid

Overloads​

NameDescription
Grid(int rows, int cols)rows×cols 균등 grid anchor 생성 (변이축; 3,3 = 3x3 preset).
각 축은 [0,1] 을 균등 분할: n개 셀 → i/(n-1). 단일 행/열(n=1)은 중앙(0.5).
반환 순서 = row-major (Top→Bottom 의 각 행에서 Left→Right).
Grid(int rows, int cols, int depths)rows×cols×depths 균등 3D grid anchor 생성 (변이축; depths=1 이면 Grid(rows,cols) 와 동일 평면).
각 축은 [0,1] 을 균등 분할: n개 셀 → i/(n-1). 단일 축(n=1)은 중앙(0.5).
반환 순서 = depth-major: 각 depth 슬라이스(Front→Back) 안에서 row-major(Top→Bottom 의 각 행 Left→Right).

Grid(int rows, int cols)​

public static AnchorPoint[] Grid(int rows, int cols)

rows×cols 균등 grid anchor 생성 (변이축; 3,3 = 3x3 preset).
각 축은 [0,1] 을 균등 분할: n개 셀 → i/(n-1). 단일 행/열(n=1)은 중앙(0.5).
반환 순서 = row-major (Top→Bottom 의 각 행에서 Left→Right).

Parameters​

NameTypeDescription
rowsint
colsint

Returns​

TypeDescription
AnchorPoint[]

Grid(int rows, int cols, int depths)​

public static AnchorPoint[] Grid(int rows, int cols, int depths)

rows×cols×depths 균등 3D grid anchor 생성 (변이축; depths=1 이면 Grid(rows,cols) 와 동일 평면).
각 축은 [0,1] 을 균등 분할: n개 셀 → i/(n-1). 단일 축(n=1)은 중앙(0.5).
반환 순서 = depth-major: 각 depth 슬라이스(Front→Back) 안에서 row-major(Top→Bottom 의 각 행 Left→Right).

Parameters​

NameTypeDescription
rowsint
colsint
depthsint

Returns​

TypeDescription
AnchorPoint[]