public unsafe void GetCornersUnsafe(Vector2D *corners) { corners.X = this.Min.X; corners.Y = this.Max.Y; corners[1].X = this.Max.X; corners[1].Y = this.Max.Y; corners[2].X = this.Max.X; corners[2].Y = this.Min.Y; corners[3].X = this.Min.X; corners[3].Y = this.Min.Y; corners[4].X = this.Min.X; corners[4].Y = this.Max.Y; corners[5].X = this.Max.X; corners[5].Y = this.Max.Y; corners[6].X = this.Max.X; corners[6].Y = this.Min.Y; corners[7].X = this.Min.X; corners[7].Y = this.Min.Y; }
public static void StoreToVector(this Vector256 <double> vector, Vector2D *destination) => vector.ToVector2D(&destination->X);
public static Vector256 <double> ToVector256(Vector2D *p) => Vector.FromVector2D((double *)p);