| Package | Description |
|---|---|
| com.aspose.cad.math |
| Modifier and Type | Method and Description |
|---|---|
Vector2 |
Vector2.divide(float scalar)
Returns the vector divided by the scalar
|
static Vector2 |
Vector2.getOne() |
static Vector2 |
Vector2.getUnitX() |
static Vector2 |
Vector2.getUnitY() |
static Vector2 |
Vector2.getZero() |
Vector2 |
Vector2.minus(Vector2 v1)
Subtracts one vector from another
|
Vector2 |
Vector2.multiply(float scalar) |
Vector2 |
Vector2.negate()
Gets the negated vector
|
Vector2 |
Vector2.plus(Vector2 v1)
Adds two vectors
|
Vector2 |
Vector2.scale(float scalar)
Returns the scaled vector
|
Vector2 |
Vector2.unitVector()
Gets the unit (normalised) vector from this vector
|
| Modifier and Type | Method and Description |
|---|---|
float |
Vector2.distanceTo(Vector2 vectorTo)
Gets the distance to another Vector (as a point)
|
static float |
Vector2.dot(Vector2 v1,
Vector2 v2)
The dot product of two vectors
|
Vector2 |
Vector2.minus(Vector2 v1)
Subtracts one vector from another
|
Vector2 |
Vector2.plus(Vector2 v1)
Adds two vectors
|
| Constructor and Description |
|---|
Vector2(Vector2 vector)
Constructor from another Vector2
|
Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.