Uses of Class
org.apache.commons.geometry.euclidean.twod.shape.Parallelogram.Builder
Packages that use Parallelogram.Builder
Package
Description
This package provides utilities for constructing basic 2D shapes.
-
Uses of Parallelogram.Builder in org.apache.commons.geometry.euclidean.twod.shape
Methods in org.apache.commons.geometry.euclidean.twod.shape that return Parallelogram.BuilderModifier and TypeMethodDescriptionstatic Parallelogram.Builder
Parallelogram.builder
(org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Return a newParallelogram.Builder
instance to use for constructing parallelograms.Parallelogram.Builder.setPosition
(Vector2D pos) Set the center position of the created parallelogram.Parallelogram.Builder.setRotation
(Rotation2D rot) Set the rotation of the created parallelogram.Parallelogram.Builder.setScale
(double scaleFactor) Set the scaling for the created parallelogram.Parallelogram.Builder.setScale
(double x, double y) Set the scaling for the created parallelogram.Set the scaling for the created parallelogram.Parallelogram.Builder.setXDirection
(Vector2D xDirection) Set the rotation of the created parallelogram such that the relative x-axis of the shape points in the given direction.Parallelogram.Builder.setYDirection
(Vector2D yDirection) Set the rotation of the created parallelogram such that the relative y-axis of the shape points in the given direction.