Learn R Programming

LearnGeom (version 1.5)

Learning Plane Geometry

Description

Contains some functions to learn and teach basic plane Geometry at undergraduate level with the aim of being helpful to young students with little programming skills.

Copy Link

Version

Install

install.packages('LearnGeom')

Monthly Downloads

271

Version

1.5

License

GPL-2

Maintainer

Alvaro Redon

Last Published

July 14th, 2020

Functions in LearnGeom (1.5)

AddPointPoly

Adds a point to a previously defined polygon
Angle

Computes the angle between three points
CenterPolygon

Computes the center of a given polygon. The center is obtained by averaging the x and y coordinates of the polygon
CreatePolygon

Creates a matrix to represent the polygon that connects several points
CreateLinePoints

Creates a vector that represents the line that connects two points
DistancePoints

Computes the distance between two points
DistancePointLine

Computes the distance between a point and a line
PolygonAngles

Computes each of the existing angles in a given polygon
CreateArcPointsDist

Creates an arc of a circumference to connect two points
CreateLineAngle

Creates a vector to represent a line that passes through a point and forms certain angle with X axis
ProjectPoint

Computes the orthogonal projection of a point onto a line
Circumcenter

Computes the circumcenter of a given triangle, that is, the intersection of its three medians
CoordinatePlane

Plots an empty coordinate (cartesian) plane with customizable limits for the X and Y axis
CreateArcAngles

Creates an arc of a circumference
Soddy

Finds the inner and outer Soddy circles of three given mutually tangent circles
Draw

Plots a geometric object
Rotate

Rotates a geometric object
Duopoly

Plots a fractal curve from the trochoids family. Any curve from this family can be defined by some parametrical equations, but they can also be produced (approximated) through a simple iterative process based on segment drawing for certain angles and lengths
RemovePointPoly

Removes a point from a previously defined polygon
CreateRegularPolygon

Creates a matrix to represent a regular polygon
LinesAngles

Computes the angle that form two lines
CreateSegmentAngle

Creates a matrix that represents the segment that starts from a point with certain length and angle
Star

Creates a closed curve with the shape of a star. Each of the stars produced by this function is built through a simple iterative process based on segment drawing for certain angles and lengths. It can also produce regular polygons for some combinations of the parameters
Sierpinski

Plots the Sierpinski triangle
MidPoint

Computes the middle point of the segment that connects two points
SimilarPolygon

Creates a similar polygon to a given one
CreateSegmentPoints

Creates a matrix that represents the segment that connects two points
IntersectLines

Finds the intersection of two lines
Incenter

Computes the incenter of a given triangle
DistanceLines

Computes the distance between two lines
FractalSegment

Plots a fractal curve starting from a segment
Homothety

Creates an homothety from a given polygon
ReflectedPoint

Computes the reflected point about a line of a given point
Koch

Plots the Koch curve
Tessellation

Creates a tessellation from a starting set of geometric objects
ReflectedPolygon

Creates the reflection about a line of a given polygon
SelectPoints

Selection of points from the coordinate plane
IntersectLineCircle

Finds the intersection between a line and a circumference
ShearedPolygon

Creates a sheared polygon from a given one
Translate

Translates a geometric object