////
/// @author Newton Koumantzelis
////

/// Gives us 45 degrees of a circle
/// @since 2.0.0 - The Jedi
/// @return {Number} - 45º
/// @example
///    deg45 // 0.70710678
@function deg45() {
	@return $pi / 4;
}

/// Gets the radius of a circle
/// @since 1.1.0 - The Sith
/// @param {CSS Unit} $size - the expected size
/// @return {CSS Unit} - an offset used for box-shadow
@function circle-angle($size) {
	@return round($size * sin(deg45())) + ($size / 2);
}

/// Gets the angle of a circle
/// @since 1.1.0 - The Sith
/// @param {CSS Unit} $size - the expected size
/// @return {CSS Unit} - an offset used for box-shadow
@function circle-normal($size) {
	@return round($size * sin(deg45())) + $size;
}
