⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 abrush.h

📁 虚幻的再开发程序包源代码
💻 H
字号:
/*=============================================================================
	ABrush.h.
	Copyright 1997-1999 Epic Games, Inc. All Rights Reserved.
=============================================================================*/

	// Constructors.
	ABrush() {}

	// UObject interface.
	void PostLoad();

	// AActor interface.
	FCoords ToLocal() const
	{
		guardSlow(ABrush::ToLocal);
		return GMath.UnitCoords / -PrePivot / MainScale / Rotation / PostScale / Location;
		unguardSlow;
	}
	FCoords ToWorld() const
	{
		guardSlow(ABrush::ToWorld);
		return GMath.UnitCoords * Location * PostScale * Rotation * MainScale * -PrePivot;
		unguardSlow;
	}
	FLOAT BuildCoords( FModelCoords* Coords, FModelCoords* Uncoords )
	{
		guard(ABrush::BuildCoords);
		if( Coords )
		{
			Coords->PointXform    = (GMath.UnitCoords * PostScale * Rotation * MainScale);
			Coords->VectorXform   = (GMath.UnitCoords / MainScale / Rotation / PostScale).Transpose();
		}
		if( Uncoords )
		{
			Uncoords->PointXform  = (GMath.UnitCoords / MainScale / Rotation / PostScale);
			Uncoords->VectorXform = (GMath.UnitCoords * PostScale * Rotation * MainScale).Transpose();
		}
		return MainScale.Orientation() * PostScale.Orientation();
		unguard;
	}

	// ABrush interface.
	virtual void CopyPosRotScaleFrom( ABrush* Other )
	{
		guard(ABrush::CopyPosRotScaleFrom);
		check(Brush);
		check(Other);
		check(Other->Brush);

		Location    = Other->Location;
		Rotation    = Other->Rotation;
		PrePivot	= Other->PrePivot;
		MainScale	= Other->MainScale;
		PostScale	= Other->PostScale;

		Brush->BuildBound();

		unguard;
	}
	virtual void InitPosRotScale();

/*-----------------------------------------------------------------------------
	The End.
-----------------------------------------------------------------------------*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -