Package | Description |
---|---|
org.apache.commons.geometry.euclidean.twod |
This package provides basic 2D geometry components.
|
org.apache.commons.geometry.euclidean.twod.rotation |
This package provides components related to rotations in 2 dimensional
Euclidean space.
|
org.apache.commons.geometry.euclidean.twod.shape |
This package provides utilities for constructing basic 2D shapes.
|
Modifier and Type | Method and Description |
---|---|
static AffineTransformMatrix2D |
AffineTransformMatrix2D.createRotation(Vector2D center,
Rotation2D rotation)
Create a transform representing a counterclockwise rotation around the given center point.
|
AffineTransformMatrix2D |
AffineTransformMatrix2D.rotate(Rotation2D rotation)
Apply a counterclockwise rotation to the current instance, returning the result as a
new transform.
|
AffineTransformMatrix2D |
AffineTransformMatrix2D.rotate(Vector2D center,
Rotation2D rotation)
Apply a counterclockwise rotation about the given center point to the current instance,
returning the result as a new transform.
|
Modifier and Type | Method and Description |
---|---|
static Rotation2D |
Rotation2D.createVectorRotation(Vector2D u,
Vector2D v)
Create a rotation instance that rotates the vector
u to point in the direction of
vector v . |
static Rotation2D |
Rotation2D.identity()
Return an instance representing the identity rotation, ie a rotation
of zero radians.
|
Rotation2D |
Rotation2D.inverse() |
static Rotation2D |
Rotation2D.of(double angle)
Create a new instance with the given angle of rotation.
|
Modifier and Type | Method and Description |
---|---|
Parallelogram.Builder |
Parallelogram.Builder.setRotation(Rotation2D rot)
Set the rotation of the created parallelogram.
|
Copyright © 2016–2021 The Apache Software Foundation. All rights reserved.