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
Convert mechanical energy into electric energy. What can he use?
Nina [5.8K]

Answer:

<h2>Generator </h2>

Explanation:

A generator converts mechanical energy into electrical energy

7 0
4 years ago
Match the description with the term. I need help
mel-nik [20]

Answer:

cultivation - preparing and planting crops

domestication - capturing, taming, and breeding animals

hunting and gathering - obtaining food from the wild

Explanation:

moo

6 0
3 years ago
Các đặc điểm chính của đường dây dài siêu cao áp .
rodikova [14]

Answer:

Đường dây siêu cao áp 500kV: Những chuyện giờ mới kể ... ​Ngày 27/5/1994, hệ thống đường dây điện siêu cao áp 500kV Bắc - Nam chính thức đưa ... Tại thời điểm đó, các nước như Pháp, Úc, Mỹ khi xây dựng đường dây dài nhất ... và chế ra các máy kéo dây theo đặc thù công việc của từng đơn vị.

Explanation:

8 0
3 years ago
Consider a Carnot refrigeration cycle executed in a closed system in the saturated liquid–vapor mixture region using 1.06 kg of
Alexxandr [17]

Answer:

P_m_i_n = 442KPA

Explanation:

We are given:

m = 1.06Kg

T_H = 1.2T_L

T = 22kj

Therefore we need to find coefficient performance or the cycle

COP_R = \frac {1}{(T_R/T_l) -1}

= \frac {1 }{1.2-1}

= 5

For the amount of heat absorbed:

Q_l = COP_R Wm

= 5 × 22 = 110KJ

For the amount of heat rejected:

Q_H = Q_L + W_m

= 110 + 22 = 132KJ

[tex[ q_H = \frac{Q_L}{m} [/tex];

= = \frac{132}{1.06}

= 124.5KJ

Using refrigerant table at hfg = 124.5KJ/Kg we have 69.5°c

Convert 69.5°c to K we have 342.5K

To find the minimum temperature:

T_L = \frac{T_H}{1.2};

T_L = \frac{342.5}{1.2}

= 285.4K

Convert to °C we have 12.4°C

From the refrigerant R -134a table at T_L = 12.4°c we have 442KPa

6 0
3 years ago
A large increase in elevation can cause a carbureted engine to run ________ if not properly adjusted for the altitude. a Rich b
mash [69]

Answer:

B - Poor

Explanation:

As you get higher up, There is less oxygen which causes the engine to create less power.

3 0
3 years ago
Other questions:
  • The first step to merging is entering the ramp and _____.
    10·1 answer
  • This problem demonstrates aliasing. Generate a 512-point waveform consisting of 2 sinusoids at 200 and 400-Hz. Assume a sampling
    8·1 answer
  • potential difference is the work done in moving a unit positive charge from one point to another in an electric field. State Tru
    12·1 answer
  • To remove a spark plug the technician would need a(n) ___socket​
    7·2 answers
  • What are the prefixes for 1, 10, 1000, 1,000,000, .1, .01, .001, .000001
    9·1 answer
  • A smooth ceramic sphere (SG 5 2.6) is immersed in a fl ow of water at 208C and 25 cm/s. What is the sphere diameter if it is enc
    11·1 answer
  • Choose the correct word or phrase to complete the sentence to explain human intervention in a machine system.
    13·1 answer
  • New ventures that are based on strategic value, such as valuable technology, are attractive while those with low or no strategic
    12·2 answers
  • Analyze the example of this band saw wheel and axle. The diameter of the wheel is 14 inches. The diameter of the axle that drive
    9·1 answer
  • The most important reason to wear your seat belt is to protect you from:
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!