본문으로 건너뛰기

RotateCameraByAxis

Overloads

NameDescription
RotateCameraByAxis(Axis axis, Directions dir, float degree)축 기준 회전
RotateCameraByAxis(float degreeX, float degreeY, float degreeZ)축 기준 회전
RotateCameraByAxis(BaseAxis baseAxis, Axis axis, Directions dir, float degree)축 기준 회전

RotateCameraByAxis(Axis axis, Directions dir, float degree)

public void RotateCameraByAxis(Axis axis, Directions dir, float degree)

축 기준 회전

Parameters

NameTypeDescription
axisAxis
dirDirections방향
degreefloat회전 각도

RotateCameraByAxis(float degreeX, float degreeY, float degreeZ)

public void RotateCameraByAxis(float degreeX, float degreeY, float degreeZ)

축 기준 회전

Parameters

NameTypeDescription
degreeXfloatX축 각도
degreeYfloatY축 각도
degreeZfloatZ축 각도

RotateCameraByAxis(BaseAxis baseAxis, Axis axis, Directions dir, float degree)

public void RotateCameraByAxis(BaseAxis baseAxis, Axis axis, Directions dir, float degree)

축 기준 회전

Parameters

NameTypeDescription
baseAxisBaseAxis기준 좌표계
axisAxis
dirDirections방향
degreefloat회전 각도

Examples

// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;

private void Example()
{
// Camera Position
VIZCore3D.NET.Data.Vertex3D camera = new Data.Vertex3D(18200.0f, 4095.0f, 17354.0f);

vizcore3d.View.Projection = Data.Projections.Perspective;
vizcore3d.View.FOV = Convert.ToSingle(60.0f);
vizcore3d.View.SetPivotPosition(camera);
vizcore3d.Walkthrough.LockZAxis = false;
vizcore3d.View.MoveCamera(camera, 0.0f, false);

float degree = 5.0f;

// Camera Direction
// Up(0), Down(1), Left(2), Right(3)
int cameraDir = 0;

if(cameraDir == 0)
vizcore3d.View.RotateCameraByAxis(Data.BaseAxis.LOCAL, Data.Axis.X, Data.Directions.PLUS, degree);
else if(cameraDir == 1)
vizcore3d.View.RotateCameraByAxis(Data.BaseAxis.LOCAL, Data.Axis.X, Data.Directions.MINUS, degree);
else if (cameraDir == 2)
vizcore3d.View.RotateCameraByAxis(Data.BaseAxis.WORLD, Data.Axis.Z, Data.Directions.PLUS, degree);
else if (cameraDir == 3)
vizcore3d.View.RotateCameraByAxis(Data.BaseAxis.WORLD, Data.Axis.Z, Data.Directions.MINUS, degree);
}