triangle - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


geom3d

  

triangle

  

define a triangle

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

triangle(T, [A, B, C], n)

triangle(T, [l1, l2, l3], n)

Parameters

T

-

the name of the triangle

A, B, C

-

three points

l1, l2, l3

-

three lines

n

-

(optional) list of three names representing the names of the x-axis, y-axis and the z-axis respectively.

Description

• 

A triangle is a polygon having three sides. A vertex of a triangle is a point at which two of the sides meet.

• 

A triangle T can be defined as follows:

– 

from three given points A, B, C.

– 

from three given lines l1, l2, l3.

• 

To access the information relating to a triangle T, use the following function calls:

form(T)

returns the form of the geometric object (i.e., triangle3d if T is a triangle).

DefinedAs(T)

returns the list of three vertices of T

detail(T)

returns a detailed description of the triangle T.

• 

The command with(geom3d,triangle) allows the use of the abbreviated form of this command.

Examples

withgeom3d:

define three points A0,0,0,B1,1,1, and C1,0,2

pointA,0,0,0,pointB,1,1,1,pointC,1,0,2:

define the triangle T1 that has A,B,C as its vertices

triangleT1,A,B,C

T1

(1)

formT1

triangle3d

(2)

mapcoordinates,DefinedAsT1

0,0,0,1,1,1,1,0,2

(3)

See Also

geom3d/objects

geom3d[altitude]

geom3d[area]

geom3d[IsEquilateral]

geom3d[IsRightTriangle]

geom3d[sides]