Go CLI that turns the markdown currency of this stack (Redmine notes, Discourse posts, briefing output) into typeset PDFs: two embedded typst templates (report with title page/TOC/headers, dense brief), front-matter (title/subtitle/author/date/classification/template), GFM tables, and bar charts rendered in pure Go (go-chart) from fenced chart data blocks. Engine is a prebuilt typst 0.15.1 container pinned by digest and run --network none; PDF bytes to stdout or -o. Exit codes 0/1/2. All dev in docker (dev.sh/Makefile); unit tests + golden typst fixtures plus a host-side smoke against the real engine container. Generated with Crush Assisted-by: Crush:glm-5.2
38 lines
1.1 KiB
Go
38 lines
1.1 KiB
Go
// Copyright 2015 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
// Package f64 implements float64 vector and matrix types.
|
|
package f64 // import "golang.org/x/image/math/f64"
|
|
|
|
// Vec2 is a 2-element vector.
|
|
type Vec2 [2]float64
|
|
|
|
// Vec3 is a 3-element vector.
|
|
type Vec3 [3]float64
|
|
|
|
// Vec4 is a 4-element vector.
|
|
type Vec4 [4]float64
|
|
|
|
// Mat3 is a 3x3 matrix in row major order.
|
|
//
|
|
// m[3*r + c] is the element in the r'th row and c'th column.
|
|
type Mat3 [9]float64
|
|
|
|
// Mat4 is a 4x4 matrix in row major order.
|
|
//
|
|
// m[4*r + c] is the element in the r'th row and c'th column.
|
|
type Mat4 [16]float64
|
|
|
|
// Aff3 is a 3x3 affine transformation matrix in row major order, where the
|
|
// bottom row is implicitly [0 0 1].
|
|
//
|
|
// m[3*r + c] is the element in the r'th row and c'th column.
|
|
type Aff3 [6]float64
|
|
|
|
// Aff4 is a 4x4 affine transformation matrix in row major order, where the
|
|
// bottom row is implicitly [0 0 0 1].
|
|
//
|
|
// m[4*r + c] is the element in the r'th row and c'th column.
|
|
type Aff4 [12]float64
|