Skip to content

Vector2

Eduard Gushchin edited this page Jul 1, 2026 · 5 revisions

Home | API by Category | Complete API Index | API Compatibility

Field Value
Full name Electron2D.Vector2
Namespace Electron2D
Kind struct
Category Math and Data

Overview

Represents the vector2 value type.

Syntax

public struct Electron2D.Vector2 : System.IEquatable<Electron2D.Vector2>

Godot 4.7 C# profile compatibility

Profile: Electron2D 0.1.0 2D
Status: Partial / Not verified
Out of profile: yes
Godot reference: Vector2

Floating-point 2D vector baseline with arithmetic, length, dot/cross, interpolation and formatting.

Remarks

This type is part of the Electron2D 0.1.0 Preview public API.

Thread Safety

Instances of this type are not synchronized. Access them from the thread that owns the object unless the member documentation states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

Members

Member Kind Summary
Down Field Represents the down value.
Inf Field Represents the inf value.
Left Field Represents the left value.
One Field Represents the one value.
Right Field Represents the right value.
Up Field Represents the up value.
Zero Field Represents the zero value.
X Property Gets or sets the x value.
Y Property Gets or sets the y value.
Electron2D.Vector2(System.Single, System.Single) Constructor Initializes a new instance of the Vector2 type.
Abs() Method Executes the abs operation.
Angle() Method Executes the angle operation.
AngleTo(Electron2D.Vector2) Method Executes the angle to operation.
Ceil() Method Executes the ceil operation.
Clamp(Electron2D.Vector2, Electron2D.Vector2) Method Executes the clamp operation.
Cross(Electron2D.Vector2) Method Executes the cross operation.
DirectionTo(Electron2D.Vector2) Method Executes the direction to operation.
DistanceSquaredTo(Electron2D.Vector2) Method Executes the distance squared to operation.
DistanceTo(Electron2D.Vector2) Method Executes the distance to operation.
Dot(Electron2D.Vector2) Method Executes the dot operation.
Equals(Electron2D.Vector2) Method Executes the equals operation.
Equals(System.Object) Method Executes the equals operation.
Floor() Method Executes the floor operation.
GetHashCode() Method Gets the hash code value.
IsEqualApprox(Electron2D.Vector2) Method Checks whether equal approx is true.
IsFinite() Method Checks whether finite is true.
IsNormalized() Method Checks whether normalized is true.
IsZeroApprox() Method Checks whether zero approx is true.
Length() Method Executes the length operation.
LengthSquared() Method Executes the length squared operation.
Lerp(Electron2D.Vector2, System.Single) Method Executes the lerp operation.
Max(Electron2D.Vector2) Method Executes the max operation.
Min(Electron2D.Vector2) Method Executes the min operation.
Normalized() Method Executes the normalized operation.
Rotated(System.Single) Method Executes the rotated operation.
Round() Method Executes the round operation.
Sign() Method Executes the sign operation.
ToString() Method Executes the to string operation.
op_Addition(Electron2D.Vector2, Electron2D.Vector2) Method Applies the + operator.
op_Division(Electron2D.Vector2, Electron2D.Vector2) Method Applies the / operator.
op_Division(Electron2D.Vector2, System.Single) Method Applies the / operator.
op_Equality(Electron2D.Vector2, Electron2D.Vector2) Method Applies the == operator.
op_Inequality(Electron2D.Vector2, Electron2D.Vector2) Method Applies the != operator.
op_Multiply(Electron2D.Vector2, Electron2D.Vector2) Method Applies the * operator.
op_Multiply(Electron2D.Vector2, System.Single) Method Applies the * operator.
op_Multiply(System.Single, Electron2D.Vector2) Method Applies the * operator.
op_Subtraction(Electron2D.Vector2, Electron2D.Vector2) Method Applies the - operator.
op_UnaryNegation(Electron2D.Vector2) Method Applies the - operator.

Member Details

Down

Kind: Field

public static Electron2D.Vector2 Down

Summary

Represents the down value.

Remarks

Use this field as a stable value supplied by the declaring type.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Vector2

Inf

Kind: Field

public static Electron2D.Vector2 Inf

Summary

Represents the inf value.

Remarks

Use this field as a stable value supplied by the declaring type.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Vector2

Left

Kind: Field

public static Electron2D.Vector2 Left

Summary

Represents the left value.

Remarks

Use this field as a stable value supplied by the declaring type.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Vector2

One

Kind: Field

public static Electron2D.Vector2 One

Summary

Represents the one value.

Remarks

Use this field as a stable value supplied by the declaring type.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Vector2

Right

Kind: Field

public static Electron2D.Vector2 Right

Summary

Represents the right value.

Remarks

Use this field as a stable value supplied by the declaring type.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Vector2

Up

Kind: Field

public static Electron2D.Vector2 Up

Summary

Represents the up value.

Remarks

Use this field as a stable value supplied by the declaring type.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Vector2

Zero

Kind: Field

public static Electron2D.Vector2 Zero

Summary

Represents the zero value.

Remarks

Use this field as a stable value supplied by the declaring type.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Vector2

X

Kind: Property

public System.Single X { get; set; }

Summary

Gets or sets the x value.

Remarks

This property follows the validation and lifetime rules of its declaring type.

Value

The current x value.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Vector2

Y

Kind: Property

public System.Single Y { get; set; }

Summary

Gets or sets the y value.

Remarks

This property follows the validation and lifetime rules of its declaring type.

Value

The current y value.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Vector2

Electron2D.Vector2(System.Single, System.Single)

Kind: Constructor

public Electron2D.Vector2(System.Single x, System.Single y)

Summary

Initializes a new instance of the Vector2 type.

Remarks

The new instance follows the lifetime and validation rules of its declaring type.

Parameters

  • x: The X coordinate or component.
  • y: The Y coordinate or component.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Vector2

Abs()

Kind: Method

public Electron2D.Vector2 Abs()()

Summary

Executes the abs operation.

Remarks

This method follows the validation and lifetime rules of its declaring type.

Returns

The result of the operation.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Vector2

Angle()

Kind: Method

public System.Single Angle()()

Summary

Executes the angle operation.

Remarks

This method follows the validation and lifetime rules of its declaring type.

Returns

The result of the operation.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Vector2

AngleTo(Electron2D.Vector2)

Kind: Method

public System.Single AngleTo(Electron2D.Vector2)(Electron2D.Vector2 to)

Summary

Executes the angle to operation.

Remarks

This method follows the validation and lifetime rules of its declaring type.

Parameters

  • to: The to value.

Returns

The result of the operation.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Vector2

Ceil()

Kind: Method

public Electron2D.Vector2 Ceil()()

Summary

Executes the ceil operation.

Remarks

This method follows the validation and lifetime rules of its declaring type.

Returns

The result of the operation.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Vector2

Clamp(Electron2D.Vector2, Electron2D.Vector2)

Kind: Method

public Electron2D.Vector2 Clamp(Electron2D.Vector2, Electron2D.Vector2)(Electron2D.Vector2 min, Electron2D.Vector2 max)

Summary

Executes the clamp operation.

Remarks

This method follows the validation and lifetime rules of its declaring type.

Parameters

  • min: The min value.
  • max: The max value.

Returns

The result of the operation.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Vector2

Cross(Electron2D.Vector2)

Kind: Method

public System.Single Cross(Electron2D.Vector2)(Electron2D.Vector2 with)

Summary

Executes the cross operation.

Remarks

This method follows the validation and lifetime rules of its declaring type.

Parameters

  • with: The with value.

Returns

The result of the operation.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Vector2

DirectionTo(Electron2D.Vector2)

Kind: Method

public Electron2D.Vector2 DirectionTo(Electron2D.Vector2)(Electron2D.Vector2 to)

Summary

Executes the direction to operation.

Remarks

This method follows the validation and lifetime rules of its declaring type.

Parameters

  • to: The to value.

Returns

The result of the operation.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Vector2

DistanceSquaredTo(Electron2D.Vector2)

Kind: Method

public System.Single DistanceSquaredTo(Electron2D.Vector2)(Electron2D.Vector2 to)

Summary

Executes the distance squared to operation.

Remarks

This method follows the validation and lifetime rules of its declaring type.

Parameters

  • to: The to value.

Returns

The result of the operation.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Vector2

DistanceTo(Electron2D.Vector2)

Kind: Method

public System.Single DistanceTo(Electron2D.Vector2)(Electron2D.Vector2 to)

Summary

Executes the distance to operation.

Remarks

This method follows the validation and lifetime rules of its declaring type.

Parameters

  • to: The to value.

Returns

The result of the operation.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Vector2

Dot(Electron2D.Vector2)

Kind: Method

public System.Single Dot(Electron2D.Vector2)(Electron2D.Vector2 with)

Summary

Executes the dot operation.

Remarks

This method follows the validation and lifetime rules of its declaring type.

Parameters

  • with: The with value.

Returns

The result of the operation.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Vector2

Equals(Electron2D.Vector2)

Kind: Method

public System.Boolean Equals(Electron2D.Vector2)(Electron2D.Vector2 other)

Summary

Executes the equals operation.

Remarks

This method follows the validation and lifetime rules of its declaring type.

Parameters

  • other: The other value.

Returns

The result of the operation.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Vector2

Equals(System.Object)

Kind: Method

public System.Boolean Equals(System.Object)(System.Object obj)

Summary

Executes the equals operation.

Remarks

This method follows the validation and lifetime rules of its declaring type.

Parameters

  • obj: The obj value.

Returns

The result of the operation.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Vector2

Floor()

Kind: Method

public Electron2D.Vector2 Floor()()

Summary

Executes the floor operation.

Remarks

This method follows the validation and lifetime rules of its declaring type.

Returns

The result of the operation.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Vector2

GetHashCode()

Kind: Method

public System.Int32 GetHashCode()()

Summary

Gets the hash code value.

Remarks

This method follows the validation and lifetime rules of its declaring type.

Returns

The current hash code value.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Vector2

IsEqualApprox(Electron2D.Vector2)

Kind: Method

public System.Boolean IsEqualApprox(Electron2D.Vector2)(Electron2D.Vector2 other)

Summary

Checks whether equal approx is true.

Remarks

This method follows the validation and lifetime rules of its declaring type.

Parameters

  • other: The other value.

Returns

true when the condition is met; otherwise, false.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Vector2

IsFinite()

Kind: Method

public System.Boolean IsFinite()()

Summary

Checks whether finite is true.

Remarks

This method follows the validation and lifetime rules of its declaring type.

Returns

true when the condition is met; otherwise, false.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Vector2

IsNormalized()

Kind: Method

public System.Boolean IsNormalized()()

Summary

Checks whether normalized is true.

Remarks

This method follows the validation and lifetime rules of its declaring type.

Returns

true when the condition is met; otherwise, false.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Vector2

IsZeroApprox()

Kind: Method

public System.Boolean IsZeroApprox()()

Summary

Checks whether zero approx is true.

Remarks

This method follows the validation and lifetime rules of its declaring type.

Returns

true when the condition is met; otherwise, false.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Vector2

Length()

Kind: Method

public System.Single Length()()

Summary

Executes the length operation.

Remarks

This method follows the validation and lifetime rules of its declaring type.

Returns

The result of the operation.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Vector2

LengthSquared()

Kind: Method

public System.Single LengthSquared()()

Summary

Executes the length squared operation.

Remarks

This method follows the validation and lifetime rules of its declaring type.

Returns

The result of the operation.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Vector2

Lerp(Electron2D.Vector2, System.Single)

Kind: Method

public Electron2D.Vector2 Lerp(Electron2D.Vector2, System.Single)(Electron2D.Vector2 to, System.Single weight)

Summary

Executes the lerp operation.

Remarks

This method follows the validation and lifetime rules of its declaring type.

Parameters

  • to: The to value.
  • weight: The weight value.

Returns

The result of the operation.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Vector2

Max(Electron2D.Vector2)

Kind: Method

public Electron2D.Vector2 Max(Electron2D.Vector2)(Electron2D.Vector2 with)

Summary

Executes the max operation.

Remarks

This method follows the validation and lifetime rules of its declaring type.

Parameters

  • with: The with value.

Returns

The result of the operation.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Vector2

Min(Electron2D.Vector2)

Kind: Method

public Electron2D.Vector2 Min(Electron2D.Vector2)(Electron2D.Vector2 with)

Summary

Executes the min operation.

Remarks

This method follows the validation and lifetime rules of its declaring type.

Parameters

  • with: The with value.

Returns

The result of the operation.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Vector2

Normalized()

Kind: Method

public Electron2D.Vector2 Normalized()()

Summary

Executes the normalized operation.

Remarks

This method follows the validation and lifetime rules of its declaring type.

Returns

The result of the operation.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Vector2

Rotated(System.Single)

Kind: Method

public Electron2D.Vector2 Rotated(System.Single)(System.Single angle)

Summary

Executes the rotated operation.

Remarks

This method follows the validation and lifetime rules of its declaring type.

Parameters

  • angle: The angle value.

Returns

The result of the operation.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Vector2

Round()

Kind: Method

public Electron2D.Vector2 Round()()

Summary

Executes the round operation.

Remarks

This method follows the validation and lifetime rules of its declaring type.

Returns

The result of the operation.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Vector2

Sign()

Kind: Method

public Electron2D.Vector2 Sign()()

Summary

Executes the sign operation.

Remarks

This method follows the validation and lifetime rules of its declaring type.

Returns

The result of the operation.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Vector2

ToString()

Kind: Method

public System.String ToString()()

Summary

Executes the to string operation.

Remarks

This method follows the validation and lifetime rules of its declaring type.

Returns

The result of the operation.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Vector2

op_Addition(Electron2D.Vector2, Electron2D.Vector2)

Kind: Method

public static Electron2D.Vector2 op_Addition(Electron2D.Vector2, Electron2D.Vector2)(Electron2D.Vector2 left, Electron2D.Vector2 right)

Summary

Applies the + operator.

Remarks

This operator returns a value derived from the supplied operands.

Parameters

  • left: The left value.
  • right: The right value.

Returns

The result of the operator.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Vector2

op_Division(Electron2D.Vector2, Electron2D.Vector2)

Kind: Method

public static Electron2D.Vector2 op_Division(Electron2D.Vector2, Electron2D.Vector2)(Electron2D.Vector2 left, Electron2D.Vector2 right)

Summary

Applies the / operator.

Remarks

This operator returns a value derived from the supplied operands.

Parameters

  • left: The left value.
  • right: The right value.

Returns

The result of the operator.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Vector2

op_Division(Electron2D.Vector2, System.Single)

Kind: Method

public static Electron2D.Vector2 op_Division(Electron2D.Vector2, System.Single)(Electron2D.Vector2 value, System.Single scalar)

Summary

Applies the / operator.

Remarks

This operator returns a value derived from the supplied operands.

Parameters

  • value: The value to use.
  • scalar: The scalar value.

Returns

The result of the operator.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Vector2

op_Equality(Electron2D.Vector2, Electron2D.Vector2)

Kind: Method

public static System.Boolean op_Equality(Electron2D.Vector2, Electron2D.Vector2)(Electron2D.Vector2 left, Electron2D.Vector2 right)

Summary

Applies the == operator.

Remarks

This operator returns a value derived from the supplied operands.

Parameters

  • left: The left value.
  • right: The right value.

Returns

The result of the operator.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Vector2

op_Inequality(Electron2D.Vector2, Electron2D.Vector2)

Kind: Method

public static System.Boolean op_Inequality(Electron2D.Vector2, Electron2D.Vector2)(Electron2D.Vector2 left, Electron2D.Vector2 right)

Summary

Applies the != operator.

Remarks

This operator returns a value derived from the supplied operands.

Parameters

  • left: The left value.
  • right: The right value.

Returns

The result of the operator.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Vector2

op_Multiply(Electron2D.Vector2, Electron2D.Vector2)

Kind: Method

public static Electron2D.Vector2 op_Multiply(Electron2D.Vector2, Electron2D.Vector2)(Electron2D.Vector2 left, Electron2D.Vector2 right)

Summary

Applies the * operator.

Remarks

This operator returns a value derived from the supplied operands.

Parameters

  • left: The left value.
  • right: The right value.

Returns

The result of the operator.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Vector2

op_Multiply(Electron2D.Vector2, System.Single)

Kind: Method

public static Electron2D.Vector2 op_Multiply(Electron2D.Vector2, System.Single)(Electron2D.Vector2 value, System.Single scalar)

Summary

Applies the * operator.

Remarks

This operator returns a value derived from the supplied operands.

Parameters

  • value: The value to use.
  • scalar: The scalar value.

Returns

The result of the operator.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Vector2

op_Multiply(System.Single, Electron2D.Vector2)

Kind: Method

public static Electron2D.Vector2 op_Multiply(System.Single, Electron2D.Vector2)(System.Single scalar, Electron2D.Vector2 value)

Summary

Applies the * operator.

Remarks

This operator returns a value derived from the supplied operands.

Parameters

  • scalar: The scalar value.
  • value: The value to use.

Returns

The result of the operator.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Vector2

op_Subtraction(Electron2D.Vector2, Electron2D.Vector2)

Kind: Method

public static Electron2D.Vector2 op_Subtraction(Electron2D.Vector2, Electron2D.Vector2)(Electron2D.Vector2 left, Electron2D.Vector2 right)

Summary

Applies the - operator.

Remarks

This operator returns a value derived from the supplied operands.

Parameters

  • left: The left value.
  • right: The right value.

Returns

The result of the operator.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Vector2

op_UnaryNegation(Electron2D.Vector2)

Kind: Method

public static Electron2D.Vector2 op_UnaryNegation(Electron2D.Vector2)(Electron2D.Vector2 value)

Summary

Applies the - operator.

Remarks

This operator returns a value derived from the supplied operands.

Parameters

  • value: The value to use.

Returns

The result of the operator.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Vector2

Clone this wiki locally