Package | Description |
---|---|
org.apache.commons.geometry.euclidean.twod.shape |
This package provides utilities for constructing basic 2D shapes.
|
Modifier and Type | Method and Description |
---|---|
static Parallelogram.Builder |
Parallelogram.builder(Precision.DoubleEquivalence precision)
Return a new
Parallelogram.Builder instance to use for constructing parallelograms. |
Parallelogram.Builder |
Parallelogram.Builder.setPosition(Vector2D pos)
Set the center position of the created parallelogram.
|
Parallelogram.Builder |
Parallelogram.Builder.setRotation(Rotation2D rot)
Set the rotation of the created parallelogram.
|
Parallelogram.Builder |
Parallelogram.Builder.setScale(double scaleFactor)
Set the scaling for the created parallelogram.
|
Parallelogram.Builder |
Parallelogram.Builder.setScale(double x,
double y)
Set the scaling for the created parallelogram.
|
Parallelogram.Builder |
Parallelogram.Builder.setScale(Vector2D scaleFactors)
Set the scaling for the created parallelogram.
|
Parallelogram.Builder |
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 |
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.
|
Copyright © 2016–2021 The Apache Software Foundation. All rights reserved.