Uses of Class
org.jzy3d.maths.Coord2d
Package
Description
Provides mathematical tools: coordinates, spaces, grids, and trigonometry for 2 and 3 dimensions.
-
Uses of Coord2d in org.jzy3d.awt
Modifier and TypeMethodDescriptionstatic Coord2d
AWTHelper.getPixelScale
(Component component) static Coord2d
AWTHelper.getPixelScale
(Graphics2D g2d) -
Uses of Coord2d in org.jzy3d.chart.controllers.camera
-
Uses of Coord2d in org.jzy3d.chart.controllers.mouse.camera
Modifier and TypeFieldDescriptionprotected Coord2d
AWTCameraMouseController.prevMouse
protected Coord2d
NewtCameraMouseController.prevMouse
Modifier and TypeMethodDescriptionprotected void
AWTCameraMouseController.drawCoord
(Graphics2D g2d, Coord2d screenPosition, int interline, String d1, String d2, boolean leftAlign) protected void
AWTCameraMouseController.drawCoord
(Graphics2D g2d, Coord2d screenPosition, Coord3d modelPosition, int interline, boolean leftAlign) Drawing primitive for mouse tooltips.protected void
AWTCameraMouseController.maintainInAxis
(Coord2d mouse) Modify the input coord2D to ensure the mouse value never stand outside of the axis bounds. -
Uses of Coord2d in org.jzy3d.chart.controllers.mouse.picking
-
Uses of Coord2d in org.jzy3d.chart.controllers.mouse.selection
-
Uses of Coord2d in org.jzy3d.chart.controllers.thread.camera
-
Uses of Coord2d in org.jzy3d.chart.factories
Modifier and TypeMethodDescriptionCanvasNewtSWT.getPixelScale()
Pixel scale is used to model the pixel ratio thay may be introduced by HiDPI or Retina displays.CanvasNewtSWT.getPixelScaleJVM()
-
Uses of Coord2d in org.jzy3d.chart2d
-
Uses of Coord2d in org.jzy3d.javafx.controllers.mouse
-
Uses of Coord2d in org.jzy3d.maths
Modifier and TypeFieldDescriptionTriangle2d.a
Triangle2d.b
Triangle2d.c
static final Coord2d
Coord2d.IDENTITY
static final Coord2d
Coord2d.INVALID
An invalid Coord2d has value NaN for each dimension.static final Coord2d
Coord2d.ORIGIN
The origin is a Coord2d having value 0 for each dimension.Modifier and TypeMethodDescriptionCoord2d.add
(float value) Add a value to all components of the current Coord and return the result in a new Coord2d.Coord2d.add
(float x, float y) Add a Coord2d to the current one and return the result in a new Coord2d.static Coord2d
Coord2d.addWeighted
(Coord2d a, Coord2d b, float weigthA, float weightB) protected static Coord2d
Coord2d.cartesian()
Converts the current Coord3d into cartesian coordinates and return the result in a new Coord3d.Coord2d.clone()
Return a duplicate of this 3d coordinate.Coord2d.div
(float value) Divise all components of the current Coord by the same value and return the result in a new Coord3d.Coord2d.div
(float x, float y) Divise a Coord2d to the current one and return the result in a new Coord2d.Coord2d.fullPolar()
Return a real polar value, with an angle in the range [0;2*PI] https://en.wikipedia.org/wiki/Polar_coordinate_systemBoundingBox2d.getCenter()
Compute and return the center point of the BoundingBox3dTriangle2d.getCenter()
Triangle2d.getCenterAB()
Triangle2d.getCenterAC()
Triangle2d.getCenterBC()
Triangle2d.getMedianAB()
Triangle2d.getMedianAC()
Triangle2d.getMedianBC()
Triangle2d.getMedianCA()
Coord3d.getXY()
Return the x and y component as a 2d coordinate.static Coord2d
Coord2d.interpolate
(Coord2d a, Coord2d b, float weigthA) Coord2d.interpolation
(Coord2d c, float ratio) Returns an interpolated point between the current and given point, according to an input ratio in [0;1] that indicates how near to the current point the new point will stand.Coord2d.mul
(float value) Multiply all components of the current Coord and return the result in a new Coord3d.Coord2d.mul
(float x, float y) Multiply a Coord2d to the current one and return the result in a new Coord2d.Coord2d.mulSelf
(float x, float y) Coord2d.polar()
Coord2d.sub
(float value) Substract a value to all components of the current Coord and return the result in a new Coord2d.Coord2d.sub
(float x, float y) Substract a Coord2d to the current one and return the result in a new Coord2d.Vector2d.vector()
Return the vector induced by this set of coordinates.Modifier and TypeMethodDescriptionvoid
Add a Point3d to the BoundingBox3d.Add a Coord2d to the current one and return the result in a new Coord2d.void
static Coord2d
Coord2d.addWeighted
(Coord2d a, Coord2d b, float weigthA, float weightB) boolean
Return true if coordinates is contained by this box.double
Compute the distance between two coordinates.double
Coord2d.distanceSq
(Coord2d c) Divise a Coord2d to the current one and return the result in a new Coord2d.static Coord2d
Coord2d.interpolate
(Coord2d a, Coord2d b, float weigthA) Coord2d.interpolation
(Coord2d c, float ratio) Returns an interpolated point between the current and given point, according to an input ratio in [0;1] that indicates how near to the current point the new point will stand.Multiply a Coord2d to the current one and return the result in a new Coord2d.Return a copy of the current bounding box after scaling.void
Substract a Coord2d to the current one and return the result in a new Coord2d.ModifierConstructorDescriptionCreate an angle, described by three coordinates.Triangle2d
(Coord2d a, Coord2d b, Coord2d c) Create a vector, described by two coordinates.ModifierConstructorDescriptionBoundingBox2d
(List<Coord2d> list) Polygon2d
(Collection<? extends Coord2d> c) -
Uses of Coord2d in org.jzy3d.maths.algorithms.convexhull
Modifier and TypeMethodDescriptionConvexHullFunction.getConvexHull
(Coord2d[] pts) GrahamScan.getConvexHull
(Coord2d[] pts) implements interfaceJarvisMarch.getConvexHull
(Coord2d[] Q) Palauttaa pinossa peitteen pisteet niin, että ensimmäinen ja viimeinen alkio ovat samat. .Modifier and TypeMethodDescriptionConvexHullFunction.getConvexHull
(Coord2d[] pts) GrahamScan.getConvexHull
(Coord2d[] pts) implements interfaceJarvisMarch.getConvexHull
(Coord2d[] Q) Palauttaa pinossa peitteen pisteet niin, että ensimmäinen ja viimeinen alkio ovat samat. . -
Uses of Coord2d in org.jzy3d.maths.algorithms.convexhull.algorithms
Modifier and TypeMethodDescriptionWorld coordinate to Screen coordinate.Screen coordinate to World coordinate.Modifier and TypeMethodDescriptionint
int
static int
ComputationalGeometry.computeOrientation
(Coord2d p1, Coord2d p2, Coord2d q) World coordinate to Screen coordinate.void
Screen coordinate to World coordinate. -
Uses of Coord2d in org.jzy3d.painters
Modifier and TypeMethodDescriptionvoid
EmulGLPainter.drawImage
(ByteBuffer imageBuffer, int imageWidth, int imageHeight, Coord2d pixelZoom, Coord3d imagePosition) A very failing implementation.void
IPainter.drawImage
(ByteBuffer imageBuffer, int imageWidth, int imageHeight, Coord2d pixelZoom, Coord3d imagePosition) A high level and easy way of drawing images (non OpenGL).void
NativeDesktopPainter.drawImage
(ByteBuffer imageBuffer, int imageWidth, int imageHeight, Coord2d pixelZoom, Coord3d imagePosition) void
NativeEmbeddedPainter.drawImage
(ByteBuffer imageBuffer, int imageWidth, int imageHeight, Coord2d pixelZoom, Coord3d imagePosition) boolean
AbstractPainter.isJVMScaleLargerThanNativeScale
(Coord2d scaleHardware, Coord2d scaleJVM) boolean
IPainter.isJVMScaleLargerThanNativeScale
(Coord2d scaleHardware, Coord2d scaleJVM) -
Uses of Coord2d in org.jzy3d.plot2d.primitive
Modifier and TypeMethodDescriptionvoid
AWTColorbarImageGenerator.setPixelScale
(Coord2d pixelScale) -
Uses of Coord2d in org.jzy3d.plot2d.primitives
Modifier and TypeMethodDescriptionvoid
void
void
void
void
void
void
void
-
Uses of Coord2d in org.jzy3d.plot2d.rendering
-
Uses of Coord2d in org.jzy3d.plot3d.primitives.axis
Modifier and TypeMethodDescriptionprotected Coord2d
AxisLabelProcessor.axisLabelOffset
(IPainter painter, AxisRenderingInfo info, Coord3d labelPosition, int margin) Offset for oblique labels.protected Coord2d
AxisLabelProcessor.axisLabelOffsetVertical
(IPainter painter, AxisRenderingInfo info, Coord3d labelPosition, int margin) Computes the offset to apply to a vertical Z label to avoid covering the tick labels in the case of a 3D chart.Modifier and TypeMethodDescriptionprotected void
AxisLabelProcessor.drawAxisLabel
(IPainter painter, int direction, Color color, BoundingBox3d ticksTxtBounds, Coord3d position, String label, float rotation, Coord2d offset) -
Uses of Coord2d in org.jzy3d.plot3d.primitives.axis.annotations
-
Uses of Coord2d in org.jzy3d.plot3d.primitives.graphs
Modifier and TypeMethodDescriptionvoid
AbstractDrawableGraph2d.setLabelScreenOffset
(Coord2d labelOffset) -
Uses of Coord2d in org.jzy3d.plot3d.primitives.graphs.impl
Modifier and TypeMethodDescriptionprotected void
protected void
DefaultDrawableGraph2d.drawVertexLabel
(IPainter painter, V v, Coord2d coord, Color color) protected void
DefaultDrawableGraph2d.drawVertexNode
(IPainter painter, V v, Coord2d coord, Color color) protected void
PointGraph2d.drawVertexNode
(IPainter painter, V v, Coord2d coord, Color color) protected void
TextureGraph2d.drawVertexNode
(IPainter painter, V v, Coord2d coord, Color color) -
Uses of Coord2d in org.jzy3d.plot3d.primitives.graphs.layout
Modifier and TypeMethodDescriptionDefaultGraphLayout2d.getVertexPosition
(V v) IGraphLayout2d.getVertexPosition
(V v) Modifier and TypeMethodDescriptionvoid
DefaultGraphLayout2d.setVertexPosition
(V v, Coord2d position) void
IGraphLayout2d.setVertexPosition
(V v, Coord2d position) -
Uses of Coord2d in org.jzy3d.plot3d.primitives.pickable
ModifierConstructorDescriptionPickableTexture
(SharedTexture resource, PlaneAxis orientation, float axisValue, List<Coord2d> coords) PickableTexture
(SharedTexture resource, PlaneAxis orientation, float axisValue, List<Coord2d> coords, Color filter) -
Uses of Coord2d in org.jzy3d.plot3d.primitives.textured
Modifier and TypeMethodDescriptionNativeDrawableImage.getDefaultTextureMapping()
NativeDrawableImage.getManualTextureMapping
(float width, float height) NativeDrawableImage.getManualTextureMapping
(float width, float height, float xoffset, float yoffset) Must supply the expected size of texture in 3d coordinates.TexturedCube.makeXPlaneTextureMapping
(Coord3d position, float width) TexturedCube.makeYPlaneTextureMapping
(Coord3d position, float width) TexturedCube.makeZPlaneTextureMapping
(Coord3d position, float width) Modifier and TypeMethodDescriptionvoid
NativeDrawableImage.setPlanePosition
(Coord2d planePosition) ModifierConstructorDescriptionNativeDrawableImage
(SharedTexture resource, PlaneAxis orientation, float axisValue, List<Coord2d> coords) NativeDrawableImage
(SharedTexture resource, PlaneAxis orientation, float axisValue, List<Coord2d> coords, Color filter) -
Uses of Coord2d in org.jzy3d.plot3d.primitives.volume.textured
ModifierConstructorDescriptionAWTNativeDrawableImage
(Shape shape, PlaneAxis orientation, float axisValue, List<Coord2d> coords, Color filter) AWTNativeDrawableImage
(SharedTexture resource, PlaneAxis orientation, float axisValue, List<Coord2d> coords) AWTNativeDrawableImage
(SharedTexture resource, PlaneAxis orientation, float axisValue, List<Coord2d> coords, Color filter) -
Uses of Coord2d in org.jzy3d.plot3d.rendering.canvas
Modifier and TypeMethodDescriptionCanvasAWT.getPixelScale()
Pixel scale is used to model the pixel ratio thay may be introduced by HiDPI or Retina displays.CanvasNewtAwt.getPixelScale()
Pixel scale is used to model the pixel ratio thay may be introduced by HiDPI or Retina displays.CanvasSwing.getPixelScale()
Pixel scale is used to model the pixel ratio thay may be introduced by HiDPI or Retina displays.EmulGLCanvas.getPixelScale()
ICanvas.getPixelScale()
Provide pixel scale as feasible by the Hardware, OS, and JVM, independently of what was asked byICanvas.setPixelScale(float[])
.OffscreenCanvas.getPixelScale()
CanvasAWT.getPixelScaleJVM()
CanvasNewtAwt.getPixelScaleJVM()
CanvasSwing.getPixelScaleJVM()
EmulGLCanvas.getPixelScaleJVM()
ICanvas.getPixelScaleJVM()
Provide pixel scale as considered feasible by the JVM.OffscreenCanvas.getPixelScaleJVM()
Modifier and TypeMethodDescriptionvoid
CanvasAWT.setPixelScale
(Coord2d scale) default void
ICanvas.setPixelScale
(Coord2d scale) -
Uses of Coord2d in org.jzy3d.plot3d.rendering.legends.colorbars
Modifier and TypeMethodDescriptionprotected BufferedImage
Generate an image for this dimension, margin and pixel scale.void
AWTColorbarLegend.updatePixelScale
(Coord2d pixelScale) Update the image with pixel scale if scale changed -
Uses of Coord2d in org.jzy3d.plot3d.rendering.view
Modifier and TypeFieldDescriptionprotected Coord2d
View2DProcessing.modelToScreen
protected Coord2d
AWTImageViewport.pixelScale
protected Coord2d
View.pixelScale
AWTImageViewport.ImageLayout.zoom
Modifier and TypeMethodDescriptionstatic Coord2d
AbstractViewportManager.apply_WindowsHiDPI_Workaround
(IPainter painter, int width, int height) static Coord2d
AbstractViewportManager.apply_WindowsHiDPI_Workaround
(IPainter painter, Coord2d viewport) View2DProcessing.getModelToScreen()
Return the model-to-screen ratio that that was processed at the latest call toinvalid @link
#apply()
View2DProcessing.getModelToScreenRatio
(Area space, Area canvas, Area margins) A helper for processing 2D margins.AWTImageViewport.getPixelScale()
IImageViewport.getPixelScale()
View.getPixelScale()
Return a copy of the currently known pixel scale as notified by the canvas.static Coord2d
AbstractViewportManager.getWindowsHiDPIScale_Workaround
(IPainter painter) Modifier and TypeMethodDescriptionstatic Coord2d
AbstractViewportManager.apply_WindowsHiDPI_Workaround
(IPainter painter, Coord2d viewport) protected void
View2DLayout_Debug.configureFontAndHiDPI
(Graphics2D g2d, Coord2d pixelScale) Cancel the HiDPI scaling consideration to draw debug stuff properly on either EmulGL or Nativeprotected void
View2DLayout_Debug.drawColorbarMargins
(Graphics2D g2d, Coord2d pixelScale) protected void
View2DLayout_Debug.drawViewMargins
(Graphics2D g2d, Coord2d pixelScale) View.projectMouse
(Coord2d mouse) void
GENERAL DISPLAY CONTROLSvoid
void
AWTImageViewport.updatePixelScale
(Coord2d pixelScale) Update internal pixel scale knowledge.void
IImageViewport.updatePixelScale
(Coord2d pixelScale) -
Uses of Coord2d in org.jzy3d.plot3d.rendering.view.controllers
-
Uses of Coord2d in org.jzy3d.plot3d.text
Modifier and TypeFieldDescriptionprotected static final Coord2d
AbstractTextRenderer.NO_SCREEN_OFFSET
Modifier and TypeMethodDescriptionAbstractTextRenderer.drawText
(IPainter painter, Font font, String s, Coord3d position, float rotation, Horizontal halign, Vertical valign, Color color, Coord2d screenOffset) AbstractTextRenderer.drawText
(IPainter painter, Font font, String s, Coord3d position, float rotation, TextAlign align, Color color, Coord2d screenOffset) AbstractTextRenderer.drawText
(IPainter painter, Font font, String s, Coord3d position, Horizontal halign, Vertical valign, Color color, Coord2d screenOffset) ITextRenderer.drawText
(IPainter painter, Font font, String s, Coord3d position, float rotation, Horizontal halign, Vertical valign, Color color, Coord2d screenOffset) ITextRenderer.drawText
(IPainter painter, Font font, String s, Coord3d position, float rotation, Horizontal halign, Vertical valign, Color color, Coord2d screenOffset, Coord3d sceneOffset) The main text renderer method to implement.ITextRenderer.drawText
(IPainter painter, Font font, String s, Coord3d position, float rotation, TextAlign align, Color color, Coord2d screenOffset) ITextRenderer.drawText
(IPainter painter, Font font, String s, Coord3d position, Horizontal halign, Vertical valign, Color color, Coord2d screenOffset) -
Uses of Coord2d in org.jzy3d.plot3d.text.align
Modifier and TypeMethodDescriptionAWTTextLayout.getBounds
(GlyphVector gv) AWTTextLayout.getBounds
(String str, Font font, FontRenderContext frc) -
Uses of Coord2d in org.jzy3d.plot3d.text.drawable
Modifier and TypeMethodDescriptionDrawableTextTexture.makeMapping
(Coord2d dim) void
DrawableTextWrapper.setScreenOffset
(Coord2d screenOffset) ModifierConstructorDescriptionDrawableTextTexture
(String text, int fontSize, Coord2d position, Coord2d dim) DrawableTextTexture
(String text, Coord2d position, Coord2d dim) ModifierConstructorDescriptionDrawableTextTexture
(SharedTexture resource, PlaneAxis orientation, float axisValue, List<Coord2d> coords) DrawableTextTexture
(SharedTexture resource, PlaneAxis orientation, float axisValue, List<Coord2d> coords, Color filter) -
Uses of Coord2d in org.jzy3d.plot3d.text.drawable.cells
ModifierConstructorDescriptionDrawableTextCell
(int n, String text, Coord2d position, Coord2d dim) DrawableTextCell
(BufferedImageTexture image, Coord2d position, Coord2d dim) DrawableTextCell
(TextCellRenderer renderer, Coord2d position, Coord2d dim) ModifierConstructorDescriptionDrawableTextCell
(SharedTexture resource, PlaneAxis orientation, float axisValue, List<Coord2d> coords, Color filter) -
Uses of Coord2d in org.jzy3d.plot3d.text.renderers
Modifier and TypeMethodDescriptionTextBillboardRenderer.drawText
(IPainter painter, Font font, String s, Coord3d position, float rotation, Horizontal halign, Vertical valign, Color color, Coord2d screenOffset, Coord3d sceneOffset) Deprecated.Draw a string at the specified position and compute the 3d volume occupied by the string according to the current Camera configuration.TextBitmapRenderer.drawText
(IPainter painter, Font font, String text, Coord3d position, float rotation, Horizontal halign, Vertical valign, Color color, Coord2d screenOffset, Coord3d sceneOffset) Deprecated.Draw a string at the specified position and return the 3d volume occupied by the string according to the current Camera configuration.TextRenderer.drawText
(IPainter painter, Font font, String text, Coord3d position, float rotation, Horizontal halign, Vertical valign, Color color, Coord2d screenOffset, Coord3d sceneOffset) Draw a string at the specified position and return the 3d volume occupied by the string according to the current Camera configuration. -
Uses of Coord2d in org.jzy3d.plot3d.text.renderers.jogl
Modifier and TypeMethodDescriptionJOGLTextRenderer2d.drawText
(IPainter painter, Font font, String s, Coord3d position, float rotation, Horizontal horizontal, Vertical vertical, Color color, Coord2d screenOffset, Coord3d sceneOffset) JOGLTextRenderer3d.drawText
(IPainter painter, Font font, String s, Coord3d position, float rotation, Horizontal halign, Vertical valign, Color color, Coord2d screenOffset, Coord3d sceneOffset) -
Uses of Coord2d in org.jzy3d.plot3d.transform.space