From 7d1f685d4bece0a41285e28aef61655da0aac1bc Mon Sep 17 00:00:00 2001 From: faiface <faiface@ksp.sk> Date: Wed, 15 Mar 2017 00:15:02 +0100 Subject: [PATCH] clarify doc --- geometry.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/geometry.go b/geometry.go index 299c835..76c1126 100644 --- a/geometry.go +++ b/geometry.go @@ -281,6 +281,8 @@ func (m Matrix) Rotated(around Vec, angle float64) Matrix { } // Project applies all transformations added to the Matrix to a vector u and returns the result. +// +// Time complexity is O(1). func (m Matrix) Project(u Vec) Vec { m3 := mgl64.Mat3(m) proj := m3.Mul3x1(mgl64.Vec3{u.X(), u.Y(), 1}) @@ -288,6 +290,8 @@ func (m Matrix) Project(u Vec) Vec { } // Unproject does the inverse operation to Project. +// +// Time complexity is O(1). func (m Matrix) Unproject(u Vec) Vec { m3 := mgl64.Mat3(m) inv := m3.Inv() -- GitLab