Vec2
from noon import Vec2
Source-derived class. Host availability is not inferred from this listing. See reference scope.
Bases: tuple. Declared members follow; inherited and dynamically attached members are not expanded.
Explicit planar vector accepted by Noon's 2D conveniences.
Vec2.__new__
Vec2.__new__(cls, x: float=0.0, y: float=0.0) -> Vec2
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
cls | positional or keyword | Not annotated | No default |
x | positional or keyword | float | 0.0 |
y | positional or keyword | float | 0.0 |
Return annotation: Vec2
No docstring declared here. Consult the source and host reference.
Vec2.x
Vec2.x(self) -> floatDecorators: property
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
Return annotation: float
No docstring declared here. Consult the source and host reference.
Vec2.y
Vec2.y(self) -> floatDecorators: property
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
Return annotation: float
No docstring declared here. Consult the source and host reference.
Vec2.length
Vec2.length(self) -> float
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
Return annotation: float
No docstring declared here. Consult the source and host reference.
Vec2.normalized
Vec2.normalized(self) -> Vec2
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
Return annotation: Vec2
No docstring declared here. Consult the source and host reference.