FVector2
Overview
FVector2 is a class in Aspose.3D FOSS for Python.
FVector2.normalize returns a new FVector2 with the same direction and unit length.
This class declares 11 methods for FVector2 objects in Python programs.
Available methods include: __add__, __eq__, __init__, __mul__, __repr__, __sub__, __truediv__, dot, length, normalize, parse.
Public members are accessible to any Python application after installing the Aspose.3D FOSS for Python package.
Properties: x, y.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
x | float | Read/Write | Gets or sets the x. |
y | float | Read/Write | Gets or sets the y. |
Methods
| Signature | Description |
|---|---|
__init__(x, y) | Calls init(x, y) on this FVector2 instance. |
__repr__() → str | Calls repr on this FVector2 instance. |
__eq__(other) → bool | Calls eq(other) on this FVector2 instance. |
__add__(other: 'FVector2') → 'FVector2' | Calls add(other) on this FVector2 instance. |
__sub__(other: 'FVector2') → 'FVector2' | Calls sub(other) on this FVector2 instance. |
__mul__(scalar: float) → 'FVector2' | Calls mul(scalar) on this FVector2 instance. |
__truediv__(scalar: float) → 'FVector2' | Calls truediv(scalar) on this FVector2 instance. |
length() → float | Calls length on this FVector2 instance. |
normalize() → 'FVector2' | Returns a new FVector2 with the same direction and unit length |
dot(other: 'FVector2') → float | Computes the scalar dot product with another FVector2 |
parse(input: str) | Creates an FVector2 from a string representation of two numbers |