Documentation ¶
Overview ¶
Package trigonometry provides helpers to work with trigonometry.
Index ¶
Constants ¶
View Source
const ( ZeroAngle = 0.0 // degrees RightAngle = 90.0 StraightAngle = 180.0 CompleteAngle = 360.0 )
Variables ¶
This section is empty.
Functions ¶
func DegreeToRadian ¶
DegreeToRadian returns angle in radian from given degree d.
func RadianToDegree ¶
RadianToDegree returns angle in degree from given radian r.
Types ¶
type Angle ¶
Angle represents a DMS angle type.
func DegreeToDMS ¶
DegreeToDMS returns a DMS angle from given degree d.
func RadianToDMS ¶
RadianToDMS returns a DMS angle from given radian r.
func (*Angle) DMSToDegree ¶
DMSToDegree returns angle in degree from the DMS angle.
func (*Angle) DMSToRadian ¶
DMSToRadian returns angle in radian from the DMS angle.
func (*Angle) IsAcuteAngle ¶
IsAcuteAngle returns true if DMS angle is acute angle.
func (*Angle) IsCompleteAngle ¶
IsCompleteAngle returns true if DMS angle is complete angle.
func (*Angle) IsObtuseAngle ¶
IsObtuseAngle returns true if DMS angle is obtuse angle.
func (*Angle) IsRightAngle ¶
IsRightAngle returns true if DMS angle is right angle.
Click to show internal directories.
Click to hide internal directories.