Table of Contents

Class NwMath

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

Common math functions and constants.

public static class NwMath
Inheritance
NwMath
Inherited Members

Fields

DegToRad

Constant value for converting degrees to radians.

FeetToMeters

Constant value for converting feet to meters.

MetersToFeet

Constant value for converting meters to feet.

MetersToYards

Constant value for converting meters to yards.

RadToDeg

Constant value for converting radians to degrees.

YardsToMeters

Constant value for converting yards to meters.

Methods

AngleToVector2(float)

Converts the specified angle into a direction/heading vector.

AngleToVector3(float)

Converts the specified angle into a direction/heading vector.

VectorToAngle(Vector2)

Converts the specified direction/heading vector to an angle.

VectorToAngle(Vector3)

Converts the specified direction/heading vector to an angle.