Documentation ¶
Overview ¶
Package projection provides the projection interface and implementations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOffsetCenter ¶
GetOffsetCenter returns the offset to move `bounds` to the center of the screen.
Types ¶
type Projection ¶
type Projection interface { Project(math3.Vec) math3.Vec SetOffset(math3.Vec) GetScale() float64 SetScale(float64) GetAngle() math3.Vec SetAngle(math3.Vec) }
Projection defines how to project the given 3d point.
func NewDirect ¶
func NewDirect() Projection
NewDirect creates the default projection without direct changes.
func NewIsomorphic ¶
func NewIsomorphic(scale int) Projection
NewIsomorphic creates an isomorphic projection with the given scale.
Click to show internal directories.
Click to hide internal directories.