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 smooth sphere with a diameter of 6 inches and a density of 493 lbm/ft^3 falls at terminal speed through sea water (S.G.=1.0027
Pachacha [2.7K]

Given:

diameter of sphere, d = 6 inches

radius of sphere, r = \frac{d}{2} = 3 inches

density,  \rho} = 493 lbm/ ft^{3}

S.G = 1.0027

g = 9.8 m/ m^{2} = 386.22 inch/ s^{2}

Solution:

Using the formula for terminal velocity,

v_{T} = \sqrt{\frac{2V\rho  g}{A \rho C_{d}}}              (1)

(Since, m = V\times \rho)

where,

V = volume of sphere

C_{d} = drag coefficient

Now,

Surface area of sphere, A = 4\pi r^{2}

Volume of sphere, V = \frac{4}{3} \pi r^{3}

Using the above formulae in eqn (1):

v_{T} = \sqrt{\frac{2\times \frac{4}{3} \pir^{3}\rho  g}{4\pi r^{2} \rho C_{d}}}

v_{T} = \sqrt{\frac{2gr}{3C_{d}}}  

v_{T} = \sqrt{\frac{2\times 386.22\times 3}{3C_{d}}}

Therefore, terminal velcity is given by:

v_{T} = \frac{27.79}{\sqrt{C_d}} inch/sec

3 0
3 years ago
How much does It cost to make a tracking chip
Basile [38]

Answer:

about 4 grand

Explanation:

6 0
2 years ago
I'm a grandma my Samuel needs to be tough in math what do I do
Sedbober [7]
Well you could always do what Hispanics do and repeat the question 2-3 times while yelling till they finally answer
7 0
3 years ago
Read 2 more answers
The slope distance and zenith angle between points A and B were measured with a total station instrument as 17685.20 ft and 93°
dimaraw [331]

True

Explanation:

three point bending is better than tensile for evaluating the strength of ceramics. it is got a positive benefit to tensile for evaluating the strength of ceramics.

4 0
3 years ago
What types of engineers would be most likely to work on the project described in the following scenario?
Novosadov [1.4K]
I don’t thick it is write but I thick it is option (c)
3 0
3 years ago
Other questions:
  • Where are revolved sections placed in a print? A) in between break lines B) cutting planes are used to identify their locations
    12·1 answer
  • A ball thrown vertically upward from the top of a building of 60ft with an initial velocity of vA=35 ft/s. Determine (a) how hig
    8·1 answer
  • For a bronze alloy, the stress at which plastic deformation begins is 297 MPa and the modulus of elasticity is 113 GPa. (a) What
    7·1 answer
  • Water at 20◦C is pumped through 1000 ft of 0.425 ft diameter pipe at a volumetric flowrate of 1 ft3/s through a cast iron pipe t
    14·1 answer
  • How long does it take to get a master's degree in Mechanical engineering?
    12·1 answer
  • A moving-coil instrument, which gives full-scale deflection with 0.015 A has a copper coil having resistance of 1.5 Ohm at 15°C
    7·1 answer
  • What are the different types of documents used to communicate engineering designs?
    6·1 answer
  • An engine has a piston with a surface area of 17.31 in2 and can travel 3.44 inches. What is the potential change in volume, disp
    10·1 answer
  • Which claim does president Kennedy make in speech university rice ?
    5·2 answers
  • How frequently should vehicle registration be renewed?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!