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
A company wants to develop audio speakers using an inexpensive type of plastic that has a very high quality of sound output. Whi
topjm [15]

Answer:A

Explanation:

Those who want to save money and will use the product for only a few years

5 0
4 years ago
three string are attached to a small metal ring, two of the strings make and angle of 35° with the vertical and each is pulled w
Julli [10]
No clue sorry man I would help but I need help too
6 0
3 years ago
Explain three examples of workshop
stealth61 [152]

Answer:

Invitational Workshop

An invitational workshop is what many of us know. It’s what Lucy Calkins has made famous through the Reading and Writing Workshop. In the invitational workshop, the instructor usually hosts a minilesson. This minilesson is intended to meet the needs of the majority of children in the classroom. Afterward, the children are “invited” to employ the skills or strategy for the minilesson during workshop time, where students work independently or in small groups

Explanation:

7 0
2 years ago
Read 2 more answers
What is the main gas that is causing climate change?
Goryan [66]

Answer:

The main gases responsible for the greenhouse effect include carbon dioxide, methane, nitrous oxide, and water vapor which all occur naturally, and fluorinated gases which are synthetic.

3 0
3 years ago
Hydraulic engineers often use, as a unit of volume of water, the "acre-foot", defined as the volume of water that will cover 1 a
Sliva [168]

Conversion factors needed:

1 km^2 = 247.11 acres

1 ft = 12 inches.

Covert area and depth:

Area: 28 km^2 x 247.11acre/ 1km^2 = 6919.08 acres

Depth: 2.6 in x  1ft/12in. = 2.6/12 = 0.2167 ft.

Calculate volume:

Volume = area x depth

Volume = 6919.08 x 0.2167 ft = 1499.36 acre-foot

6 0
3 years ago
Other questions:
  • A vacuum pump is used to drain a basement of 20 °C water (with a density of 998 kg/m3 ). The vapor pressure of water at this tem
    13·1 answer
  • Can someone draw a electric circuit with electrical symbols for this
    13·2 answers
  • What does it take to launch a rocket in space?
    13·2 answers
  • Liquid benzene and liquid n-hexane are blended to form a stream flowing at a rate of 1700 lbm/h. An on-line densitometer (an ins
    6·1 answer
  • True or false the camshaft is always located in the engine block
    10·1 answer
  • PLEASE HELP ME!!!!!! 100 POINTS FOR HELPFUL ANSWERS + BRAINLIEST!!!!!
    14·2 answers
  • By using a book of the OHS Act, Act 85 of 1993, find the act or regulation where the following extraction comes from "every empl
    12·1 answer
  • A pulse-jet baghouse is desired for a finished cement plant. Calculate the number of bags required to filter 500 m3/min of air w
    7·1 answer
  • ANSWER ASAP<br> What is the point system?<br> this is for driving
    8·1 answer
  • Tires can be recycled instead of thrown out.<br> True<br> False
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!