Fuze Arena Logo
  • Forum
  • Creations
    Catalogue Showcase
  • Help

sin()

Purpose

Returns the sine of the supplied argument.

Description

This is the sine function which returns the ratio of the side opposite to an acute angle in a right-angled triangle to the hypotenuse (longest side)

Syntax

sine = sin( angle )

Arguments

angle The acute angle opposite to the side of a right-angled triangle.

sine The ratio of the side opposite to an acute angle in a right-angled triangle to the hypotenuse.

Example

clear()
centre = { gWidth() / 2, gHeight() / 2 }
for angle = 0 to 360 loop
    // Pick random colour
    col = { random( 101 ) / 100, random( 101 ) / 100, random( 101 ) / 100, 1.0 }
    point = { 600 * cos( angle ) + centre.x, 300 * sin( angle ) + centre.y }
    line( centre, point, col )
repeat

for i = 0 to 100 loop
    update()
repeat

Associated Commands

acos(), asin(), atan(), atan2(), pi(), radians(), sinCos(), tan()

logo

©2019 FUZE Technologies Ltd. FUZE is a registered trademark of FUZE Technologies Ltd. All rights reserved.

Useful links

  • Fuze Main Site
  • Fuze Arena on Twitter
  • Fuze Arena on Youtube
  • Download Buyer

Contact Information

  • FUZE Technologies Ltd
    15 Clearfields Farm
    Wotton Underwood
    Aylesbury, Buckinghamshire
    ​England, HP18 0RS

  • +44 (0) 1844 239 432

  • contact@fuze.co.uk

© Copyright FUZE Technologies Ltd. All rights reserved.