GodotSharpAPI
GodotSharpAPI
Godot
Vector2 Structure
Vector2 Methods
Abs Method
Angle Method
AngleTo Method
AngleToPoint Method
Aspect Method
Bounce Method
Ceil Method
Clamped Method
Cross Method
CubicInterpolate Method
DirectionTo Method
DistanceSquaredTo Method
DistanceTo Method
Dot Method
Equals Method
Floor Method
GetHashCode Method
Inverse Method
IsEqualApprox Method
IsNormalized Method
Length Method
LengthSquared Method
LinearInterpolate Method
MaxAxis Method
MinAxis Method
MoveToward Method
Normalized Method
Perpendicular Method
PosMod Method
Project Method
Reflect Method
Rotated Method
Round Method
Set Method
Sign Method
Slerp Method
Slide Method
Snapped Method
Tangent Method
ToString Method
Vector2
Aspect Method
Returns the aspect ratio of this vector, the ratio of `x` to `y`.
Namespace:
Godot
Assembly:
GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
Copy
public
float
Aspect
()
Return Value
Type:
Single
The `x` component divided by the `y` component.
See Also
Reference
Vector2 Structure
Godot Namespace