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]
4 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]4 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
Identify the unit of the electrical parameters represented by L and C and prove that the resonant frequency (fr)=1÷2π√LC
Gre4nikov [31]

Answer:

L = Henry

C = Farad

Explanation:

The electrical parameter represented as L is the inductance whose unit is Henry(H).

The electrical parameter represented as C is the inductance whose unit is Farad

Resonance frequency occurs when the applied period force is equal to the natural frequency of the system upon which the force acts :

To obtain :

At resonance, Inductive reactance = capacitive reactance

Equate the inductive and capacitive reactance

Inductive reactance(Xl) = 2πFL

Capacitive Reactance(Xc) = 1/2πFC

Inductive reactance(Xl) = Capacitive Reactance(Xc)

2πFL = 1/2πFC

Multiplying both sides by F

F * 2πFL = F * 1/2πFC

2πF²L = 1/2πC

Isolating F²

F² = 1/2πC2πL

F² = 1/4π²LC

Take the square root of both sides to make F the subject

F = √1 / √4π²LC

F = 1 /2π√LC

Hence, the proof.

8 0
3 years ago
Al Quiz
lbvjy [14]
5000! Hope this helps! If you are confused feel free to ask again
4 0
3 years ago
Consider a voltage v = Vdc + vac where Vdc = a constant and the average value of vac = 0. Apply the integral definition of RMS t
Anna11 [10]

Answer:

Proof is as follows

Proof:

Given that , V = V_{ac} + V_{dc}

<u>for any function f with period T, RMS is given by</u>

<u />RMS = \sqrt{\frac{1}{T}\int\limits^T_0 {[f(t)]^{2} } \, dt  }<u />

In our case, function is V = V_{ac} + V_{dc}

RMS = \sqrt{\frac{1}{T}\int\limits^T_0 {[V_{ac} + V_{dc}]^{2} } \, dt  }

Now open the square term as follows

RMS = \sqrt{\frac{1}{T}\int\limits^T_0 {[V_{ac}^{2} + V_{dc}^{2} + 2V_{dc}V_{ac}] } \, dt  }

Rearranging  terms

RMS = \sqrt{\frac{1}{T}\int\limits^T_0 {V_{dc}^{2}  } \, dt  + \frac{1}{T}\int\limits^T_0 {V_{ac}^{2}  } \, dt  + \frac{1}{T}\int\limits^T_0 {2V_{dc}V_{ac}  } \, dt  }

You can see that

  • second term is square of RMS value of Vac
  • Third terms is average of VdcVac and given is that                      average of  V_{ac}V_{dc} = 0

so

RMS = \sqrt{\frac{1}{T}TV_{dc}^{2}   + [RMS~~ of~~ V_{ac}]^2 }

RMS = \sqrt{V_{dc}^{2}   + [RMS~~ of~~ V_{ac}]^2 }

So it has been proved that given expression for root mean square (RMS) is valid

7 0
3 years ago
Which statement about direct-mail messages is most accurate? Group of answer choices Direct mail is an effective channel for per
torisob [31]

Answer:

Option A

Direct mail is an effective channel for personalized, tangible, three-dimensional messages that are less invasive than telephone solicitations

Explanation:

In modern days, we've seen email marketing hence option B that "Today's companies no longer send direct-mail messages to market their products or services; they rely exclusively on electronic media instead." These companies rely also on direct mails to their clients. Online marketing often uses direct mail for persuasion of their customers hence the last option is also wrong. Considering that already two statements are identified as inaccurate, the option that "All answer choices are accurate statements about direct-mail messages. " is misleading. Therefore, the only most accurate choice about direct-mail is option A

4 0
4 years ago
For a steel alloy it has been determined that a carburizing heat treatment of 14 h duration at 809°C will raise the carbon conce
Yakvenalex [24]

Answer:

t_2 = 27.7 hr

Explanation:

Given data:

carbon concentration  =  0.54%

from the relation given below calculate the time required to achieve concentration at 6.00 mm from surface

\frac{x^2}{Dt} = constant

D considered constant

\frac{x^2}{t} =  constant

here, x POSITION FROM SURFACE, t is time required to achieve concentration

\frac{x_1^2}{t_1} = \frac{x_2^2}{t_2}

\frac{3.6^2}{14} = \frac{6^2}{t_2}

t_2 = 27.7 hr

3 0
4 years ago
Other questions:
  • In case the Rectilinear distance is considered, find the optimal coordinates (X,Y) of new facility. Q2) Show and label the exist
    7·1 answer
  • The shear flow at the point depends on the value of Q for the portion of the upper flange to the right of the point. Calculate t
    14·1 answer
  • Vitrification is a process of: a. Chemical reaction bonding of aggregate ceramic powder b. Cementing aggregate ceramic powder wi
    9·1 answer
  • Calculate the modulus of elasticity of carbon-epoxy composite under isostraincondition if thecomposite consists of 40% carbon fi
    12·1 answer
  • Steam enters a turbine at 8000 kPa, 440oC. At the exit, the pressure and quality are 150 kPa and 0.19, respectively.
    15·1 answer
  • The transistor is biased with a constant current source ???? = 1mA and β = 100. a) Neglecting the early effect, find the dc volt
    5·1 answer
  • Sea A una matriz 3x3 con la propiedad de que la transformada lineal x → Ax mapea R³ sobre R³.
    15·1 answer
  • Select the correct answer.
    9·1 answer
  • O que é necessário se conhecer para a determinação de uma força concentrada em um ponto?
    14·1 answer
  • I need help with the question
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!