FixedPoint 구조체
.NET Framework 3.5
업데이트: 2007년 11월
16.16 고정 소수점 수를 나타냅니다.
어셈블리: Microsoft.WindowsMobile.DirectX(Microsoft.WindowsMobile.DirectX.dll)
이 구조체는 고정 소수점 인터페이스가 있는 Windows Mobile Direct 3D에서 다양한 형식과 상호 운용하는 데 사용됩니다. 이 클래스의 내부 표현은 Int32 구조체입니다.
다음 예제에서는 FixedPoint 구조체를 사용하는 방법을 보여 줍니다.
// The following code is from the // Direct3D Mobile Fixed Point Billboard Sample. // It uses FixedPoint to position meshes of trees randomly. // Initialize the tree data for (int i=0; i<numberTrees; i++) { Tree t = new Tree(); do { float fTheta = 2.0f * (float)Math.PI * (float)randObj.NextDouble(); float fRadius = 25.0f + 55.0f * (float)randObj.NextDouble(); Vector3Fixed position; position.X = (FixedPoint)(fRadius * (float)Math.Sin(fTheta)); position.Z = (FixedPoint)(fRadius * (float)Math.Cos(fTheta)); position.Y = (FixedPoint)HeightField((float)position.X, (float)position.Z); t.Position = position; } while (!IsTreePositionValid(t.Position));
Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC
.NET Framework 및 .NET Compact Framework에서 모든 플랫폼의 전체 버전을 지원하지는 않습니다. 지원되는 버전의 목록을 보려면 .NET Framework 시스템 요구 사항을 참조하십시오.