Giter Club home page Giter Club logo

terminal-cpplotter's Introduction

Terminal CPPlotter

Project Description

The Terminal CPPlotter is a C++ program that creates a Cartesian coordinate system on the terminal, allowing users to plot both points and lines. The project is authored by Saiyam Jain and is distributed under the MIT License.

Preview

Screenshot 2023-11-04 084631

Screenshot 2023-11-04 084452

Screenshot 2023-11-04 084543

Screenshot 2023-11-09 092654

Screenshot 2023-11-09 092754

Features

1. Point Class
- The Point class represents a point in a Cartesian coordinate system with x and y coordinates. - It provides constructors to initialize points with default or specified coordinates. - The | operator overloading allows you to calculate the Euclidean distance between two points. - The ^ operator overloading calculates the midpoint between two points and returns a new Point.
2. Line Class
- The 'Line' class, enables users to define and work with lines in the Cartesian plane. - Constructors allow the creation of lines using two points. - The 'check_for_point' method determines if a given point lies on the line.
3. CartesianPlane Class
- The CartasianPlane class creates a Cartesian plane with user-defined dimensions in the terminal. - It includes a constructor that allows you to set the length of the x and y axes. - The plot function in this class can plot points on the Cartesian plane. - It can plot the Cartesian axes, points, and custom symbols for the origin, positive and negative x and y axes. - The overloaded plot function takes a Point object as input and plots it on the plane.

Usage

- Compile the code using a C++ compiler.
- Execute the compiled program.
- Create 'Point' and 'Line' objects with desired coordinates. - Uitlize the 'plot' functions to visualize points and lines on the cartesian plane.

License

This project is licensed under the MIT License, granting you the freedom to use, modify, and distribute the code as per the MIT License terms.

For more details on the MIT License, please refer to the provided LICENSE file or visit the MIT License website.

terminal-cpplotter's People

Contributors

saiyam-sandhir avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

busekaya2

terminal-cpplotter's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.