Skip to content

Commit c54f0bf

Browse files
committed
Moved and modernized old Quaternion implementation.
1 parent 6c9eace commit c54f0bf

3 files changed

Lines changed: 573 additions & 587 deletions

File tree

sources/Maths/Maths/PublicAPI/net10.0/PublicAPI.Unshipped.txt

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -510,18 +510,22 @@ Silk.NET.Maths.Plane<T>.Plane(T x, T y, T z, T distance) -> void
510510
Silk.NET.Maths.Quaternion<T>
511511
Silk.NET.Maths.Quaternion<T>.Angle.get -> T
512512
Silk.NET.Maths.Quaternion<T>.As<TOther>() -> Silk.NET.Maths.Quaternion<TOther>
513+
Silk.NET.Maths.Quaternion<T>.Axis -> Silk.NET.Maths.Vector3D<T>
513514
Silk.NET.Maths.Quaternion<T>.Equals(Silk.NET.Maths.Quaternion<T> other) -> bool
515+
Silk.NET.Maths.Quaternion<T>.Invert() -> void
514516
Silk.NET.Maths.Quaternion<T>.IsIdentity.get -> bool
515-
Silk.NET.Maths.Quaternion<T>.Length() -> T
516-
Silk.NET.Maths.Quaternion<T>.LengthSquared() -> T
517+
Silk.NET.Maths.Quaternion<T>.Length.get -> T
518+
Silk.NET.Maths.Quaternion<T>.LengthSquared.get -> T
519+
Silk.NET.Maths.Quaternion<T>.Normalize() -> void
517520
Silk.NET.Maths.Quaternion<T>.Quaternion() -> void
518-
Silk.NET.Maths.Quaternion<T>.Quaternion(Silk.NET.Maths.Vector3D<T> vectorPart, T scalarPart) -> void
521+
Silk.NET.Maths.Quaternion<T>.Quaternion(Silk.NET.Maths.Vector3D<T> axis, T w) -> void
522+
Silk.NET.Maths.Quaternion<T>.Quaternion(Silk.NET.Maths.Vector4D<T> components) -> void
519523
Silk.NET.Maths.Quaternion<T>.Quaternion(T x, T y, T z, T w) -> void
520524
Silk.NET.Maths.Quaternion<T>.this[int index].get -> T
521525
Silk.NET.Maths.Quaternion<T>.W -> T
522-
Silk.NET.Maths.Quaternion<T>.X -> T
523-
Silk.NET.Maths.Quaternion<T>.Y -> T
524-
Silk.NET.Maths.Quaternion<T>.Z -> T
526+
Silk.NET.Maths.Quaternion<T>.X.get -> T
527+
Silk.NET.Maths.Quaternion<T>.Y.get -> T
528+
Silk.NET.Maths.Quaternion<T>.Z.get -> T
525529
Silk.NET.Maths.Ray2D<T>
526530
Silk.NET.Maths.Ray2D<T>.As<TOther>() -> Silk.NET.Maths.Ray2D<TOther>
527531
Silk.NET.Maths.Ray2D<T>.Direction -> Silk.NET.Maths.Vector2D<T>
@@ -1300,25 +1304,20 @@ static Silk.NET.Maths.Plane<T>.explicit operator Silk.NET.Maths.Plane<ushort>(Si
13001304
static Silk.NET.Maths.Plane<T>.explicit operator System.Numerics.Plane(Silk.NET.Maths.Plane<T> from) -> System.Numerics.Plane
13011305
static Silk.NET.Maths.Plane<T>.operator !=(Silk.NET.Maths.Plane<T> value1, Silk.NET.Maths.Plane<T> value2) -> bool
13021306
static Silk.NET.Maths.Plane<T>.operator ==(Silk.NET.Maths.Plane<T> value1, Silk.NET.Maths.Plane<T> value2) -> bool
1303-
static Silk.NET.Maths.Quaternion<T>.Add(Silk.NET.Maths.Quaternion<T> value1, Silk.NET.Maths.Quaternion<T> value2) -> Silk.NET.Maths.Quaternion<T>
13041307
static Silk.NET.Maths.Quaternion<T>.Concatenate(Silk.NET.Maths.Quaternion<T> value1, Silk.NET.Maths.Quaternion<T> value2) -> Silk.NET.Maths.Quaternion<T>
13051308
static Silk.NET.Maths.Quaternion<T>.Conjugate(Silk.NET.Maths.Quaternion<T> value) -> Silk.NET.Maths.Quaternion<T>
13061309
static Silk.NET.Maths.Quaternion<T>.CreateFromAxisAngle(Silk.NET.Maths.Vector3D<T> axis, T angle) -> Silk.NET.Maths.Quaternion<T>
13071310
static Silk.NET.Maths.Quaternion<T>.CreateFromRotationMatrix(Silk.NET.Maths.Matrix3X3<T> matrix) -> Silk.NET.Maths.Quaternion<T>
13081311
static Silk.NET.Maths.Quaternion<T>.CreateFromRotationMatrix(Silk.NET.Maths.Matrix4X4<T> matrix) -> Silk.NET.Maths.Quaternion<T>
13091312
static Silk.NET.Maths.Quaternion<T>.CreateFromYawPitchRoll(T yaw, T pitch, T roll) -> Silk.NET.Maths.Quaternion<T>
1310-
static Silk.NET.Maths.Quaternion<T>.Divide(Silk.NET.Maths.Quaternion<T> value1, Silk.NET.Maths.Quaternion<T> value2) -> Silk.NET.Maths.Quaternion<T>
13111313
static Silk.NET.Maths.Quaternion<T>.Dot(Silk.NET.Maths.Quaternion<T> quaternion1, Silk.NET.Maths.Quaternion<T> quaternion2) -> T
13121314
static Silk.NET.Maths.Quaternion<T>.explicit operator Silk.NET.Maths.Quaternion<double>(Silk.NET.Maths.Quaternion<T> from) -> Silk.NET.Maths.Quaternion<double>
13131315
static Silk.NET.Maths.Quaternion<T>.explicit operator Silk.NET.Maths.Quaternion<float>(Silk.NET.Maths.Quaternion<T> from) -> Silk.NET.Maths.Quaternion<float>
13141316
static Silk.NET.Maths.Quaternion<T>.explicit operator Silk.NET.Maths.Quaternion<System.Half>(Silk.NET.Maths.Quaternion<T> from) -> Silk.NET.Maths.Quaternion<System.Half>
13151317
static Silk.NET.Maths.Quaternion<T>.explicit operator System.Numerics.Quaternion(Silk.NET.Maths.Quaternion<T> from) -> System.Numerics.Quaternion
13161318
static Silk.NET.Maths.Quaternion<T>.Identity.get -> Silk.NET.Maths.Quaternion<T>
1317-
static Silk.NET.Maths.Quaternion<T>.Inverse(Silk.NET.Maths.Quaternion<T> value) -> Silk.NET.Maths.Quaternion<T>
1319+
static Silk.NET.Maths.Quaternion<T>.Invert(Silk.NET.Maths.Quaternion<T> value) -> Silk.NET.Maths.Quaternion<T>
13181320
static Silk.NET.Maths.Quaternion<T>.Lerp(Silk.NET.Maths.Quaternion<T> quaternion1, Silk.NET.Maths.Quaternion<T> quaternion2, T amount) -> Silk.NET.Maths.Quaternion<T>
1319-
static Silk.NET.Maths.Quaternion<T>.Multiply(Silk.NET.Maths.Quaternion<T> value1, Silk.NET.Maths.Quaternion<T> value2) -> Silk.NET.Maths.Quaternion<T>
1320-
static Silk.NET.Maths.Quaternion<T>.Multiply(Silk.NET.Maths.Quaternion<T> value1, T value2) -> Silk.NET.Maths.Quaternion<T>
1321-
static Silk.NET.Maths.Quaternion<T>.Negate(Silk.NET.Maths.Quaternion<T> value) -> Silk.NET.Maths.Quaternion<T>
13221321
static Silk.NET.Maths.Quaternion<T>.Normalize(Silk.NET.Maths.Quaternion<T> value) -> Silk.NET.Maths.Quaternion<T>
13231322
static Silk.NET.Maths.Quaternion<T>.operator !=(Silk.NET.Maths.Quaternion<T> left, Silk.NET.Maths.Quaternion<T> right) -> bool
13241323
static Silk.NET.Maths.Quaternion<T>.operator *(Silk.NET.Maths.Quaternion<T> value1, Silk.NET.Maths.Quaternion<T> value2) -> Silk.NET.Maths.Quaternion<T>
@@ -1329,7 +1328,7 @@ static Silk.NET.Maths.Quaternion<T>.operator -(Silk.NET.Maths.Quaternion<T> valu
13291328
static Silk.NET.Maths.Quaternion<T>.operator /(Silk.NET.Maths.Quaternion<T> value1, Silk.NET.Maths.Quaternion<T> value2) -> Silk.NET.Maths.Quaternion<T>
13301329
static Silk.NET.Maths.Quaternion<T>.operator ==(Silk.NET.Maths.Quaternion<T> left, Silk.NET.Maths.Quaternion<T> right) -> bool
13311330
static Silk.NET.Maths.Quaternion<T>.Slerp(Silk.NET.Maths.Quaternion<T> quaternion1, Silk.NET.Maths.Quaternion<T> quaternion2, T amount) -> Silk.NET.Maths.Quaternion<T>
1332-
static Silk.NET.Maths.Quaternion<T>.Subtract(Silk.NET.Maths.Quaternion<T> value1, Silk.NET.Maths.Quaternion<T> value2) -> Silk.NET.Maths.Quaternion<T>
1331+
static Silk.NET.Maths.Quaternion<T>.Zero.get -> Silk.NET.Maths.Quaternion<T>
13331332
static Silk.NET.Maths.Ray2D<T>.operator !=(Silk.NET.Maths.Ray2D<T> value1, Silk.NET.Maths.Ray2D<T> value2) -> bool
13341333
static Silk.NET.Maths.Ray2D<T>.operator ==(Silk.NET.Maths.Ray2D<T> value1, Silk.NET.Maths.Ray2D<T> value2) -> bool
13351334
static Silk.NET.Maths.Ray3D<T>.operator !=(Silk.NET.Maths.Ray3D<T> value1, Silk.NET.Maths.Ray3D<T> value2) -> bool

0 commit comments

Comments
 (0)