Skip to content

Commit

Permalink
fix: hide zero as summand
Browse files Browse the repository at this point in the history
  • Loading branch information
Entkenntnis committed Apr 11, 2024
1 parent c644f38 commit 7e6edf5
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,13 @@ export function RotatePoint() {
</>
) : data.deg === 30 ? (
<>
C ( {data.ax} + {data.len > 2 ? 0.5 * data.len : ''}
C ( {data.ax === 0 ? null : <>{data.ax} + </>}
{data.len > 2 ? 0.5 * data.len : ''}
{buildSqrt(3)} | {Math.round(data.cy)} )
</>
) : (
<>
C ( {Math.round(data.cx)} | {data.ay} +{' '}
C ( {Math.round(data.cx)} | {data.ay === 0 ? null : <>{data.ay} + </>}
{data.len > 2 ? 0.5 * data.len : ''}
{buildSqrt(3)} )
</>
Expand Down

0 comments on commit 7e6edf5

Please sign in to comment.