1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Serga [27]
3 years ago
7

a triangle is defined by the three vertices. write the following functions of the triangle class assume that the point class has

already been written for you you may add helper functions as needed
Engineering
1 answer:
Fofino [41]3 years ago
3 0

Answer:

The triangle() function is an inbuilt function in p5.js which is used to draw a triangle in a plane. This function accepts three vertices of triangle.

Syntax:

triangle(x1, y1, x2, y2, x3, y3)

Below programs illustrates the triangle() function in p5.js:

function setup() {  

   createCanvas(400, 400);  

}  

 

function draw() {  

   background(220);  

   fill('lightgreen');  

 

   // A triangle at (100, 250), (250, 170) and (330, 300)    

   triangle(100, 250, 250, 170, 330, 300);  

}  

You might be interested in
Which of the following activities will allow an engineer to determine that a building's design is sound?
zhannawk [14.2K]
Please add more details because I don’t know if you are using a book or passage, therefore I cannot help you unless you add more detail
3 0
3 years ago
It has a piece of 1045 steel with the following dimensions, length of 80 cm, width of 30 cm, and a height of 15 cm. In this piec
Serggg [28]

Answer:

material remove in 3 min is 16790.4 mm³/s

Explanation:

given data

length L = 80 cm = 800 mm

width W = 30 cm

height H = 15 cm

make grove length = 80 cm

width = 8 cm

depth = 10 cm

mill toll diameter = 4 mm

axial cutting depth = 20 mm

to find out

How much material removed in 3 minutes

solution

first we find time taken for length of advance that is

time = \frac{length}{advance}

here advance is given as 0.001166 mts / sec

so  time = \frac{800}}{0.001166*1000}

time = 686.106 seconds

now we find material remove rate that is

remove rate = mill toll rate × axial cutting depth × advance

remove rate = 4 × 20×0.001166 ×1000

remove rate = 93.28 mm³/s

so

material remove in 3 minute = 3 × 60 = 180 sec

so material remove in 3 min = 180 × 93.28

material remove in 3 min is 16790.4 mm³/s

7 0
3 years ago
Estimate the endurance strength, Se, of a 37.5-mm- diameter rod of AISI 1040 steel having a machined finish and heat-treated to
7nadin3 [17]

Answer:

endurance length is 236.64 MPa

Explanation:

data given:

d = 37.5 mm

Sut = 760MPa

endurance limit is

Se = 0.5 Sut

   = 0.5*760 = 380 MPa

surface factor is

Ka = a*Sut^b

where

Sut is ultimate strength

for AISI 1040 STEEL

a = 4.51, b = -0.265

Ka = 4.51*380^{-0.265}

Ka = 0.93

size factor is given as

Kb =1.29 d^{-0.17}

Kb = 0.669

Se = Sut *Ka*Kb

    = 380*0.669*0.93

Se = 236.64 MPa

therefore endurance length is 236.64 MPa

4 0
2 years ago
Select the creative imaging fields that require knowledge of programming.
denis23 [38]
Video game designer for sure
8 0
3 years ago
Hey seggsy engineering ppl help me pick out a class ring
aliina [53]

Answer:

I Luv de 2nd one with the silver an black it's out cold no cap

Explanation:

:3 thx 4 de free po..ints luv<3 if ya wanna talk just hit meh up

   -ItzyogurlllllllllLexiiiii<3

7 0
3 years ago
Read 2 more answers
Other questions:
  • Not a characteristic property of ceramic material (a) high temperature stability (b) high mechanical strength (c) low elongation
    7·2 answers
  • 1. What is an op-amp? List the characteristics of an ideal op-amp
    11·1 answer
  • 1. Under what conditions can soils be chemically stabilized?
    8·1 answer
  • 11.A heat engine operates between two reservoirs at 800 and 20°C. One-half of the work output of the heat engine is used to driv
    6·1 answer
  • A closed system contains propane at 35°c. It produces 35 kW of work while absorbing 35 kW of heat. What is process? the temperat
    7·1 answer
  • Consider a CMOS inverter which has ideal transistors with the following characteristics: PMOS transistor: W/L = 2; Mobility (up)
    13·1 answer
  • The author states that chemical engineering is one of the most difficult and complex aspects of engineering. Why do you think th
    7·2 answers
  • Consider the following example: The 28-day compressive strength should be 4,000 psi. The slump should be between 3 and 4 in. and
    13·1 answer
  • The cult of personality that surrounded Joseph Stalin in the Soviet Union led soviet citizens to believe that there was undisput
    10·1 answer
  • PLS :(((( HELP HELPPPP
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!