Uses of Class
eu.svjatoslav.sixth.e3d.geometry.Point2D
Packages that use Point2D
Package
Description
Provides basic geometry classes for 2D and 3D coordinates and shapes.
Graphical user interface components for the Sixth 3D engine.
Provides input device tracking (keyboard, mouse) and event forwarding to virtual components.
Provides a simple text editor component rendered in 3D space.
Sixth 3D engine.
Solid-color polygon rendering with scanline rasterization.
Textured triangle rendering with perspective-correct UV mapping.
Composite shapes that group multiple primitives into compound 3D objects.
-
Uses of Point2D in eu.svjatoslav.sixth.e3d.geometry
Fields in eu.svjatoslav.sixth.e3d.geometry declared as Point2DModifier and TypeFieldDescriptionRectangle.p1The corner points of the rectangle (opposite corners).Rectangle.p2The corner points of the rectangle (opposite corners).Methods in eu.svjatoslav.sixth.e3d.geometry that return Point2DModifier and TypeMethodDescriptionAdds another point to this point in place.Point2D.clone()Creates a new point by copying this point's coordinates.Point2D.divide(double factor) Divides both coordinates by a factor.Point2D.multiply(double factor) Multiplies both coordinates by a factor.Point2D.negate()Negates this point's coordinates in place.Point2D.setToMiddle(Point2D p1, Point2D p2) Sets this point to the midpoint between two other points.Subtracts another point from this point in place.Returns a new point that is the sum of this point and another.Point2D.withDivided(double factor) Returns a new point with coordinates divided by a factor.Point2D.withMultiplied(double factor) Returns a new point with coordinates multiplied by a factor.Point2D.withNegated()Returns a new point with negated coordinates.Point2D.withSubtracted(Point2D other) Returns a new point that is this point minus another.Point2D.zero()Resets this point's coordinates to (0, 0).Methods in eu.svjatoslav.sixth.e3d.geometry with parameters of type Point2DModifier and TypeMethodDescriptionAdds another point to this point in place.voidCopies coordinates from another point into this point.doublePoint2D.getAngleXY(Point2D anotherPoint) Computes the angle on the X-Y plane between this point and another point.doublePoint2D.getDistanceTo(Point2D anotherPoint) Computes the Euclidean distance from this point to another point.static booleanPolygon.pointWithinPolygon(Point2D point, Point2D p1, Point2D p2, Point2D p3) Tests whether a point lies inside a triangle using the ray-casting algorithm.Point2D.setToMiddle(Point2D p1, Point2D p2) Sets this point to the midpoint between two other points.Subtracts another point from this point in place.Returns a new point that is the sum of this point and another.Point2D.withSubtracted(Point2D other) Returns a new point that is this point minus another.Constructors in eu.svjatoslav.sixth.e3d.geometry with parameters of type Point2D -
Uses of Point2D in eu.svjatoslav.sixth.e3d.gui
Fields in eu.svjatoslav.sixth.e3d.gui declared as Point2DModifier and TypeFieldDescriptionfinal Point2DRenderingContext.centerCoordinateCenter of the screen in screen space (pixels). -
Uses of Point2D in eu.svjatoslav.sixth.e3d.gui.humaninput
Fields in eu.svjatoslav.sixth.e3d.gui.humaninput declared as Point2DModifier and TypeFieldDescriptionMouseEvent.coordinateMouse coordinate in screen space (pixels) relative to top left corner of the screen when mouse button was clicked. -
Uses of Point2D in eu.svjatoslav.sixth.e3d.gui.textEditorComponent
Constructors in eu.svjatoslav.sixth.e3d.gui.textEditorComponent with parameters of type Point2DModifierConstructorDescriptionTextEditComponent(Transform transform, ViewPanel viewPanel, Point2D sizeInWorldCoordinates, LookAndFeel lookAndFeel) Creates a new text editor component positioned in 3D space. -
Uses of Point2D in eu.svjatoslav.sixth.e3d.math
Fields in eu.svjatoslav.sixth.e3d.math declared as Point2DModifier and TypeFieldDescriptionVertex.onScreenCoordinateVertex position on screen in pixels, relative to top-left corner.Vertex.textureCoordinateTexture coordinate for UV mapping (optional).Constructors in eu.svjatoslav.sixth.e3d.math with parameters of type Point2D -
Uses of Point2D in eu.svjatoslav.sixth.e3d.renderer.raster.shapes.basic.solidpolygon
Methods in eu.svjatoslav.sixth.e3d.renderer.raster.shapes.basic.solidpolygon with parameters of type Point2DModifier and TypeMethodDescriptionstatic voidSolidPolygon.drawTriangle(RenderingContext context, Point2D onScreenPoint1, Point2D onScreenPoint2, Point2D onScreenPoint3, MouseInteractionController mouseInteractionController, Color color) Renders a triangle using scanline rasterization.voidSets the two endpoints of this edge and precomputes the width, height, and absolute height. -
Uses of Point2D in eu.svjatoslav.sixth.e3d.renderer.raster.shapes.basic.texturedpolygon
Methods in eu.svjatoslav.sixth.e3d.renderer.raster.shapes.basic.texturedpolygon with parameters of type Point2D -
Uses of Point2D in eu.svjatoslav.sixth.e3d.renderer.raster.shapes.composite
Fields in eu.svjatoslav.sixth.e3d.renderer.raster.shapes.composite declared as Point2DModifier and TypeFieldDescriptionTexturedRectangle.textureBottomLeftBottom-left corner mapping in texture coordinates (pixels).TexturedRectangle.textureBottomRightBottom-right corner mapping in texture coordinates (pixels).TexturedRectangle.textureTopLeftTop-left corner mapping in texture coordinates (pixels).TexturedRectangle.textureTopRightTop-right corner mapping in texture coordinates (pixels).Constructor parameters in eu.svjatoslav.sixth.e3d.renderer.raster.shapes.composite with type arguments of type Point2D