This repository contains Java classes for 3D geometric calculations, developed as part of my coursework for the "20441 Introduction to Computer Science" class at the Open University of Israel in 2019b (Assignment 13), and earned a grade of 94
. 🏆
These classes include Point3D
, Box3D
, Matrix
, and Collection
, showcasing my skills in object-oriented programming and array manipulations in Java. This project is a testament to my foundational skills in Java, complementing my primary work in C, C++, and Python.
Point3D
: Represents a point in 3D space with x, y, and z coordinates.Box3D
: Represents a 3D box with properties such as length, width, height, and a base point (Point3D
).Matrix
: A class that represents a two-dimensional matrix with various methods for matrix manipulation like rotation and averaging.Collection
: Represents a collection ofBox3D
objects, showcasing how to manage and manipulate a group of objects. It includes methods to add boxes, find the box with the most upper base corner, calculate total surface area, longest distance between boxes, and more.
- Object-Oriented Programming in Java.
- Working with 3D coordinates and geometric shapes.
- Implementing and manipulating matrices.
- Organizing and manipulating collections of objects.
- Calculating distances and volumes in a 3D space.
Clone the repository and compile the desired class file:
javac Point3D.java
javac Box3D.java
javac Matrix.java
javac Collection.java
Run the compiled class file:
java Point3D
java Box3D
java Matrix
java Collection
- The
Collection
class demonstrates management of a collection ofBox3D
objects, with methods to add boxes, calculate total surface area, find the box with the highest base corner, determine the longest distance between two boxes, and more. - The
Collection
class is specifically designed forBox3D
objects and demonstrates array manipulation and object-oriented design principles in Java.
This project is licensed under the MIT License. See the LICENSE file for details.