Click or drag to resize

Matrix3DFromString Method

문자열로 표기된 Matrix를 설정

Namespace:  VIZCore3D.NET.Data
Assembly:  VIZCore3D.NET (in VIZCore3D.NET.dll) Version: 2.8.24.1104 (2.8.24.1104)
Syntax
C#
public static Matrix3D FromString(
	string matrix,
	string separator = ","
)

Parameters

matrix
Type: SystemString
Matrix 문자열
separator (Optional)
Type: SystemString
데이터 구분자

Return Value

Type: Matrix3D
Matrix
Examples
C#
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;

public void Example()
{
    List<Data.Node> node = vizcore3d.Object3D.FromFilter(Data.Object3dFilter.SELECTED_TOP);
    if (node.Count == 0) return;

    // 1,0,0,0,0,1,0,0,0,0,1,0,-88370,-350,1023,1
    string matrixString = "1,0,0,0,0,1,0,0,0,0,1,0,-88370,-350,1023,1";
    VIZCore3D.NET.Data.Matrix3D matrix = VIZCore3D.NET.Data.Matrix3D.FromString(matrixString, ",");

    // If necessary
    // matrix.Flip();

    vizcore3d.Object3D.Transform.Transform(node, matrix, true);
}
See Also