MW UNITY NAMESPACE








































public struct

FVector


An unsafe MVector that copies a Vector3 for Faster calculations.



public unsafe float*

pX

A pointer to the X-Axis.



public unsafe float*

pY

A pointer to the Y-Axis.



public unsafe float*

pZ

A pointer to the Z-Axis.



[MethodImpl(MethodImplOptions.AggressiveInlining)] public static unsafe FVector

Clone (Vector3& V)

Summary:

Copies the address of a Vector3's axes.

Params:

V:

        The Vector3 to copy.

Returns:

A new FVector initialised with XYZ pointers only.



public unsafe MVector

MV ()

Summary:

Dereferences pointers into XYZ coordinates into an MVector.

Returns:

This MVector with dereferenced components.



public void

Dispose ()

Summary:

Sets all component pointers to point to null.

Remarks:

Also calls the C# Garbage Collector.



public static implicit operator MVector

FVector -> MVector ()

Summary:

Implicit conversion from a FVector to an MVector.



public unsafe Vector3

XY

A Vector3 ignoring the Z component.



public unsafe Vector3

XZ

A Vector3 ignoring the Y component.



public unsafe Vector3

YZ

A Vector3 ignoring the X component.



public unsafe float

SqrMagnitude

The square magnitude of this Vector.



[MethodImpl(MethodImplOptions.AggressiveInlining)] public unsafe float

FDistance (Vector3 Target)

Summary:

Fast distance calculation.

Returns:

The distance between this FVector and Vector3 Target.



[MethodImpl(MethodImplOptions.AggressiveInlining)] public unsafe FVector

FNormalise ()

Summary:

Fast vector normalisation.

Returns:

The normalised FVector.



public unsafe MRotator

Rotation ()

Summary:

Fast Pitch and Yaw calculation.

Remarks:

Roll is zero.

Returns:

An MRotator rotated to face this FVector's direction.



public unsafe FVector

RotateVector (float AngleDegrees, Vector3 Axis)

Summary:

Rotates this FVector at an angle of AngleDegrees around Axis.

Remarks:

While looking towards Axis:
+ Angle is CW.

Params:

AngleDegrees:

        The degrees at which to rotate this FVector.

Axis:

        The axis to rotate this FVector around.



public static unsafe float

Angle (FVector L, FVector R)

Summary:

The angle between two vectors in degrees.

Returns:

An approximation of the angle between L and R in degrees, accurate to +-.1 degrees.



public static unsafe float

Dot ()

Summary:

The vector dot | product of Left and Right.

Remarks:

Does not assume Left and Right are normalised.