Last active
June 23, 2019 09:33
-
-
Save Weiyuan-Lane/a02780a5ddd01e59170306b48552059a to your computer and use it in GitHub Desktop.
Sample to demonstrate computing of the side length of a hexagon using trigonometry
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import 'tan'; | |
// Some random units, as an example | |
$hexagonCoreLength: 100px; | |
$hexagonBorderThickness: 2px; | |
$computationAngle: $PI/6; | |
$adjacentLength: $hexagonCoreLength + 2 * $hexagonBorderThickness; | |
// Compute the hexagon length for the side before using it | |
$hexagonSideLength: tan($computationAngle) * $adjacentLength; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment