GithubHelp home page GithubHelp logo

point3d's Introduction

Point3D


About

Point3D is a Java library for implementing and utilising 3D coordinates in the Java language. It is an extension of the Point2D library in Java, the code for which can be found here.

Implementing the Library

To utilise the library, clone/download the code in your Computer and store it in a directory alongside your code (or whatever directory suits you) and just use the regular import statement ( import <packagename> ) to import the library into your program. The main class is in src/Point3D/Point3D.java

Functions And Classes

The JavaDoc file for the code contains all the details regarding the functions and classes in the code.

Sample Output

For the input,

Point3D FirstPoint = new Point3D.Double(1,3,5);
Point3D SecondPoint = new Point3D.Double(2,3,4);
System.out.println(FirstPoint.distance(SecondPoint));
System.out.println(FirstPoint.distance(0, 0, 0));

The output is,
1.4142135623730951
5.916079783099616

Developer's Note

An additional function called the RandomCoordinateGenerator() has been added in the library. This function generates a random 3D coordinate in xyz plane.

point3d's People

Contributors

periperidip avatar

Watchers

 avatar

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.