Table of Contents

Class Quaterniond

Namespace
Vintagestory.API.MathTools
Assembly
VintagestoryAPI.dll
public class Quaterniond
Inheritance
Quaterniond
Inherited Members
Extension Methods

Methods

Add(double[], double[], double[])

public static double[] Add(double[] output, double[] a, double[] b)

Parameters

output double[]
a double[]
b double[]

Returns

double[]

CalculateW(double[], double[])

public static double[] CalculateW(double[] output, double[] a)

Parameters

output double[]
a double[]

Returns

double[]

CloneIt(double[])

public static double[] CloneIt(double[] a)

Parameters

a double[]

Returns

double[]

Conjugate(double[], double[])

public double[] Conjugate(double[] output, double[] a)

Parameters

output double[]
a double[]

Returns

double[]

Copy(double[], double[])

public static double[] Copy(double[] output, double[] a)

Parameters

output double[]
a double[]

Returns

double[]

Create()

public static double[] Create()

Returns

double[]

Dot(double[], double[])

public static double Dot(double[] a, double[] b)

Parameters

a double[]
b double[]

Returns

double

FromMat3(double[], double[])

public static double[] FromMat3(double[] output, double[] m)

Parameters

output double[]
m double[]

Returns

double[]

FromValues(double, double, double, double)

public static double[] FromValues(double x, double y, double z, double w)

Parameters

x double
y double
z double
w double

Returns

double[]

Identity_(double[])

public static double[] Identity_(double[] output)

Parameters

output double[]

Returns

double[]

Invert(double[], double[])

public double[] Invert(double[] output, double[] a)

Parameters

output double[]
a double[]

Returns

double[]

Length_(double[])

public static double Length_(double[] a)

Parameters

a double[]

Returns

double

Lerp(double[], double[], double[], double)

public static double[] Lerp(double[] output, double[] a, double[] b, double t)

Parameters

output double[]
a double[]
b double[]
t double

Returns

double[]

Multiply(double[], double[], double[])

public static double[] Multiply(double[] output, double[] a, double[] b)

Parameters

output double[]
a double[]
b double[]

Returns

double[]

Normalize(double[], double[])

public static double[] Normalize(double[] output, double[] a)

Parameters

output double[]
a double[]

Returns

double[]

RotateX(double[], double[], double)

public static double[] RotateX(double[] output, double[] a, double rad)

Parameters

output double[]
a double[]
rad double

Returns

double[]

RotateY(double[], double[], double)

public static double[] RotateY(double[] output, double[] a, double rad)

Parameters

output double[]
a double[]
rad double

Returns

double[]

RotateZ(double[], double[], double)

public static double[] RotateZ(double[] output, double[] a, double rad)

Parameters

output double[]
a double[]
rad double

Returns

double[]

RotationTo(double[], double[], double[])

public static double[] RotationTo(double[] output, double[] a, double[] b)

Parameters

output double[]
a double[]
b double[]

Returns

double[]

Scale(double[], double[], double)

public static double[] Scale(double[] output, double[] a, double b)

Parameters

output double[]
a double[]
b double

Returns

double[]

Set(double[], double, double, double, double)

public static double[] Set(double[] output, double x, double y, double z, double w)

Parameters

output double[]
x double
y double
z double
w double

Returns

double[]

SetAxes(double[], double[], double[], double[])

public static double[] SetAxes(double[] output, double[] view, double[] right, double[] up)

Parameters

output double[]
view double[]
right double[]
up double[]

Returns

double[]

SetAxisAngle(double[], double[], double)

public static double[] SetAxisAngle(double[] output, double[] axis, double rad)

Parameters

output double[]
axis double[]
rad double

Returns

double[]

Slerp(double[], double[], double[], double)

public static double[] Slerp(double[] output, double[] a, double[] b, double t)

Parameters

output double[]
a double[]
b double[]
t double

Returns

double[]

SquaredLength(double[])

public static double SquaredLength(double[] a)

Parameters

a double[]

Returns

double

ToEulerAngles(double[])

public static float[] ToEulerAngles(double[] quat)

Parameters

quat double[]

Returns

float[]