Table of Contents

Class M2CameraWotlk

Namespace
WoWLib.Formats.M2.Root.Record
Assembly
WoWLib.dll

A camera, pre-Cata layout: a static diagonal FOV plus position/target/roll spline tracks.

public class M2CameraWotlk : M2Camera, IDisposable
Inheritance
M2CameraWotlk
Implements
Inherited Members

Constructors

M2CameraWotlk()

public M2CameraWotlk()

M2CameraWotlk(M2CameraWotlk)

Copy-construct: a deep copy of other (the C++ copy constructor).

public M2CameraWotlk(M2CameraWotlk other)

Parameters

other M2CameraWotlk

Properties

FarClip

Far clip distance.

public float FarClip { get; set; }

Property Value

float

Fov

Diagonal field of view, radians.

public float Fov { get; set; }

Property Value

float

NearClip

Near clip distance.

public float NearClip { get; set; }

Property Value

float

PositionBase

Pivot point the position splines are relative to.

public C3Vector PositionBase { get; set; }

Property Value

C3Vector

Positions

Spline track moving the camera, one spline per segment.

public M2TrackSplineC3VectorWotlkPlus Positions { get; set; }

Property Value

M2TrackSplineC3VectorWotlkPlus

Roll

0 .. 2*pi.

public M2TrackSplineFloatWotlkPlus Roll { get; set; }

Property Value

M2TrackSplineFloatWotlkPlus

TargetPosition

Spline track moving the look-at target, one spline per segment.

public M2TrackSplineC3VectorWotlkPlus TargetPosition { get; set; }

Property Value

M2TrackSplineC3VectorWotlkPlus

TargetPositionBase

Pivot point the target splines are relative to.

public C3Vector TargetPositionBase { get; set; }

Property Value

C3Vector

Type

0 portrait, 1 character info, -1 flyby.

public uint Type { get; set; }

Property Value

uint

Methods

Dispose()

Release the native object now. Optional: the finalizer releases it on collection anyway - dispose (or using) when you want native memory back promptly.

public override void Dispose()

Operators

operator ==(M2CameraWotlk?, M2CameraWotlk?)

public static bool operator ==(M2CameraWotlk? l, M2CameraWotlk? r)

Parameters

l M2CameraWotlk
r M2CameraWotlk

Returns

bool

operator !=(M2CameraWotlk?, M2CameraWotlk?)

public static bool operator !=(M2CameraWotlk? l, M2CameraWotlk? r)

Parameters

l M2CameraWotlk
r M2CameraWotlk

Returns

bool