Ark Server API (ASE) - Wiki
|
#include <Rotator.h>
Public Member Functions | |
FORCEINLINE | FRotator () |
FORCEINLINE | FRotator (float InF) |
FORCEINLINE | FRotator (float InPitch, float InYaw, float InRoll) |
FORCEINLINE | FRotator (EForceInit) |
FRotator (const FQuat &Quat) | |
FRotator | operator+ (const FRotator &R) const |
FRotator | operator- (const FRotator &R) const |
FRotator | operator* (float Scale) const |
FRotator | operator*= (float Scale) |
bool | operator== (const FRotator &R) const |
bool | operator!= (const FRotator &V) const |
FRotator | operator+= (const FRotator &R) |
FRotator | operator-= (const FRotator &R) |
bool | IsNearlyZero (float Tolerance=KINDA_SMALL_NUMBER) const |
bool | IsZero () const |
bool | Equals (const FRotator &R, float Tolerance=KINDA_SMALL_NUMBER) const |
FRotator | Add (float DeltaPitch, float DeltaYaw, float DeltaRoll) |
FRotator | GetInverse () const |
FRotator | GridSnap (const FRotator &RotGrid) const |
FVector | Vector () const |
FQuat | Quaternion () const |
FVector | Euler () const |
FVector | RotateVector (const FVector &V) const |
FVector | UnrotateVector (const FVector &V) const |
FRotator | Clamp () const |
FRotator | GetNormalized () const |
FRotator | GetDenormalized () const |
void | Normalize () |
void | GetWindingAndRemainder (FRotator &Winding, FRotator &Remainder) const |
FString | ToString () const |
FString | ToCompactString () const |
bool | InitFromString (const FString &InSourceString) |
bool | ContainsNaN () const |
Static Public Member Functions | |
static float | ClampAxis (float Angle) |
static float | NormalizeAxis (float Angle) |
static uint8 | CompressAxisToByte (float Angle) |
static float | DecompressAxisFromByte (uint16 Angle) |
static uint16 | CompressAxisToShort (float Angle) |
static float | DecompressAxisFromShort (uint16 Angle) |
static FRotator | MakeFromEuler (const FVector &Euler) |
Public Attributes | |
float | Pitch |
float | Yaw |
float | Roll |
Static Public Attributes | |
static const FRotator | ZeroRotator |
Implements a container for rotation information.
All rotation values are stored in degrees.
|
inline |
|
explicit |
FORCEINLINE FRotator::FRotator | ( | float | InPitch, |
float | InYaw, | ||
float | InRoll ) |
|
explicit |
|
explicit |
Constructor.
Quat | Quaternion used to specify rotation. |
FORCEINLINE FRotator FRotator::Add | ( | float | DeltaPitch, |
float | DeltaYaw, | ||
float | DeltaRoll ) |
FORCEINLINE FRotator FRotator::Clamp | ( | ) | const |
|
static |
|
static |
|
static |
FORCEINLINE bool FRotator::ContainsNaN | ( | ) | const |
|
static |
|
static |
FORCEINLINE bool FRotator::Equals | ( | const FRotator & | R, |
float | Tolerance = KINDA_SMALL_NUMBER ) const |
Checks whether two rotators are equal within specified tolerance, when treated as an orientation. This means that FRotator(0, 0, 360).Equals(FRotator(0,0,0)) is true, because they represent the same final orientation.
R | The other rotator. |
Tolerance | Error Tolerance. |
Definition at line 459 of file Rotator.h.
FVector FRotator::Euler | ( | ) | const |
Convert a Rotator into floating-point Euler angles (in degrees). Rotator now stored in degrees.
FORCEINLINE FRotator FRotator::GetDenormalized | ( | ) | const |
FRotator FRotator::GetInverse | ( | ) | const |
Returns the inverse of the rotator.
FORCEINLINE FRotator FRotator::GetNormalized | ( | ) | const |
Decompose this Rotator into a Winding part (multiples of 360) and a Remainder part. Remainder will always be in [-180, 180] range.
Winding[Out] | the Winding part of this Rotator |
Remainder[Out] | the Remainder |
Get the rotation, snapped to specified degree segments.
RotGrid | A Rotator specifying how to snap each component. |
bool FRotator::InitFromString | ( | const FString & | InSourceString | ) |
FORCEINLINE bool FRotator::IsNearlyZero | ( | float | Tolerance = KINDA_SMALL_NUMBER | ) | const |
Checks whether rotator is nearly zero within specified tolerance, when treated as an orientation. This means that FRotator(0, 0, 360) is "zero", because it is the same final orientation as the zero rotator.
Tolerance | Error Tolerance. |
Definition at line 437 of file Rotator.h.
FORCEINLINE bool FRotator::IsZero | ( | ) | const |
Checks whether this has exactly zero rotation, when treated as an orientation. This means that FRotator(0, 0, 360) is "zero", because it is the same final orientation as the zero rotator.
Definition at line 453 of file Rotator.h.
Convert a vector of floating-point Euler angles (in degrees) into a Rotator. Rotator now stored in degrees
Euler | Euler angle vector. |
FORCEINLINE void FRotator::Normalize | ( | ) |
|
static |
FORCEINLINE bool FRotator::operator!= | ( | const FRotator & | V | ) | const |
FORCEINLINE FRotator FRotator::operator* | ( | float | Scale | ) | const |
FORCEINLINE FRotator FRotator::operator*= | ( | float | Scale | ) |
FORCEINLINE bool FRotator::operator== | ( | const FRotator & | R | ) | const |
FQuat FRotator::Quaternion | ( | ) | const |
Get Rotation as a quaternion.
Rotate a vector rotated by this rotator.
V | The vector to rotate. |
FString FRotator::ToCompactString | ( | ) | const |
Get a short textural representation of this vector, for compact readable logging.
FString FRotator::ToString | ( | ) | const |
Get a textual representation of the vector.
Returns the vector rotated by the inverse of this rotator.
V | The vector to rotate. |
FVector FRotator::Vector | ( | ) | const |
Convert a rotation into a unit vector facing in its direction.
float FRotator::Pitch |
float FRotator::Roll |
float FRotator::Yaw |
|
static |