On this page

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
ParameterKindAnnotationDefault
clspositional or keywordNot annotatedNo default
xpositional or keywordfloat0.0
ypositional or keywordfloat0.0

Return annotation: Vec2

No docstring declared here. Consult the source and host reference.

Source declaration

Vec2.x

Vec2.x(self) -> float

Decorators: property

ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default

Return annotation: float

No docstring declared here. Consult the source and host reference.

Source declaration

Vec2.y

Vec2.y(self) -> float

Decorators: property

ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default

Return annotation: float

No docstring declared here. Consult the source and host reference.

Source declaration

Vec2.length

Vec2.length(self) -> float
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default

Return annotation: float

No docstring declared here. Consult the source and host reference.

Source declaration

Vec2.normalized

Vec2.normalized(self) -> Vec2
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default

Return annotation: Vec2

No docstring declared here. Consult the source and host reference.

Source declaration