|
|
|
@@ -19,7 +19,7 @@ type AbsolutePoint struct { |
|
|
|
|
|
|
|
// Matrix calculates and returns the [canvas.Matrix] of a point. |
|
|
|
func (a *AbsolutePoint) Matrix() canvas.Matrix { |
|
|
|
return canvas.Identity.Translate(a.position.Vector.Values()).Rotate(a.position.Rotation) |
|
|
|
return canvas.Identity.Translate(a.position.Vector.Values()).Rotate(a.position.RotationD()) |
|
|
|
} |
|
|
|
|
|
|
|
// ID returns the point ID. |
|
|
|
@@ -69,7 +69,7 @@ func (a *AbsolutePoint) SetDraw() { |
|
|
|
|
|
|
|
// UnsetDraw indicates that the point should not be drawn. |
|
|
|
func (a *AbsolutePoint) UnsetDraw() { |
|
|
|
a.draw = true |
|
|
|
a.draw = false |
|
|
|
} |
|
|
|
|
|
|
|
// Hide returns if the point must remain hidden. |
|
|
|
|