public class Vector2 extends ValueType
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Numerics.Vector2
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
|
static java.lang.String |
assemblyShortName
Assembly name: System.Private.CoreLib
|
static java.lang.String |
className
Qualified class name: System.Numerics.Vector2
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
Vector2() |
Vector2(java.lang.Object instance)
Internal constructor.
|
Vector2(Single value) |
Vector2(Single x,
Single y) |
| Modifier and Type | Method and Description |
|---|---|
static Vector2 |
Abs(Vector2 value) |
static Vector2 |
Add(Vector2 left,
Vector2 right) |
static Vector2 |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into Vector2, a cast assert is made to check if types are compatible. |
static Vector2 |
Clamp(Vector2 value1,
Vector2 min,
Vector2 max) |
void |
CopyTo(Single[] array) |
void |
CopyTo(Single[] array,
int index) |
static Single |
Distance(Vector2 value1,
Vector2 value2) |
static Single |
DistanceSquared(Vector2 value1,
Vector2 value2) |
static Vector2 |
Divide(Vector2 left,
Single divisor) |
static Vector2 |
Divide(Vector2 left,
Vector2 right) |
static Single |
Dot(Vector2 value1,
Vector2 value2) |
boolean |
Equals(Vector2 other) |
java.lang.String |
getJCOAssemblyName()
Returns the reflected Assembly name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
static Vector2 |
getOne() |
static Vector2 |
getUnitX() |
static Vector2 |
getUnitY() |
static Vector2 |
getZero() |
Single |
Length() |
Single |
LengthSquared() |
static Vector2 |
Lerp(Vector2 value1,
Vector2 value2,
Single amount) |
static Vector2 |
Max(Vector2 value1,
Vector2 value2) |
static Vector2 |
Min(Vector2 value1,
Vector2 value2) |
static Vector2 |
Multiply(Single left,
Vector2 right) |
static Vector2 |
Multiply(Vector2 left,
Single right) |
static Vector2 |
Multiply(Vector2 left,
Vector2 right) |
static Vector2 |
Negate(Vector2 value) |
static Vector2 |
Normalize(Vector2 value) |
static Vector2 |
Reflect(Vector2 vector,
Vector2 normal) |
void |
setJCOInstance(JCObject instance) |
static Vector2 |
SquareRoot(Vector2 value) |
static Vector2 |
Subtract(Vector2 left,
Vector2 right) |
java.lang.String |
ToString(java.lang.String format) |
java.lang.String |
ToString(java.lang.String format,
IFormatProvider formatProvider) |
static Vector2 |
Transform(Vector2 position,
Matrix3x2 matrix) |
static Vector2 |
Transform(Vector2 position,
Matrix4x4 matrix) |
static Vector2 |
Transform(Vector2 value,
Quaternion rotation) |
static Vector2 |
TransformNormal(Vector2 normal,
Matrix3x2 matrix) |
static Vector2 |
TransformNormal(Vector2 normal,
Matrix4x4 matrix) |
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public Vector2()
throws java.lang.Throwable
java.lang.Throwablepublic Vector2(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic Vector2(Single value) throws java.lang.Throwable
java.lang.Throwablepublic static Vector2 Abs(Vector2 value) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException
java.lang.ThrowableNotSupportedExceptionPlatformNotSupportedExceptionpublic static Vector2 Add(Vector2 left, Vector2 right) throws java.lang.Throwable
java.lang.Throwablepublic static Vector2 cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into Vector2, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedVector2 instancejava.lang.Throwable - in case of error during cast operationpublic static Vector2 Clamp(Vector2 value1, Vector2 min, Vector2 max) throws java.lang.Throwable
java.lang.Throwablepublic void CopyTo(Single[] array) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
public void CopyTo(Single[] array, int index) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
public static Single Distance(Vector2 value1, Vector2 value2) throws java.lang.Throwable
java.lang.Throwablepublic static Single DistanceSquared(Vector2 value1, Vector2 value2) throws java.lang.Throwable
java.lang.Throwablepublic static Vector2 Divide(Vector2 left, Single divisor) throws java.lang.Throwable
java.lang.Throwablepublic static Vector2 Divide(Vector2 left, Vector2 right) throws java.lang.Throwable
java.lang.Throwablepublic static Single Dot(Vector2 value1, Vector2 value2) throws java.lang.Throwable
java.lang.Throwablepublic boolean Equals(Vector2 other) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionpublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class ValueTypeString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class ValueTypeString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class ValueTypeObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class ValueTypeString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class ValueTypeJCType representing the CLR Type of the instantiated Classpublic static Vector2 getOne() throws java.lang.Throwable
java.lang.Throwablepublic static Vector2 getUnitX() throws java.lang.Throwable
java.lang.Throwablepublic static Vector2 getUnitY() throws java.lang.Throwable
java.lang.Throwablepublic static Vector2 getZero() throws java.lang.Throwable
java.lang.Throwablepublic Single Length() throws java.lang.Throwable
java.lang.Throwablepublic Single LengthSquared() throws java.lang.Throwable
java.lang.Throwablepublic static Vector2 Lerp(Vector2 value1, Vector2 value2, Single amount) throws java.lang.Throwable
java.lang.Throwablepublic static Vector2 Max(Vector2 value1, Vector2 value2) throws java.lang.Throwable
java.lang.Throwablepublic static Vector2 Min(Vector2 value1, Vector2 value2) throws java.lang.Throwable
java.lang.Throwablepublic static Vector2 Multiply(Single left, Vector2 right) throws java.lang.Throwable
java.lang.Throwablepublic static Vector2 Multiply(Vector2 left, Single right) throws java.lang.Throwable
java.lang.Throwablepublic static Vector2 Multiply(Vector2 left, Vector2 right) throws java.lang.Throwable
java.lang.Throwablepublic static Vector2 Negate(Vector2 value) throws java.lang.Throwable
java.lang.Throwablepublic static Vector2 Normalize(Vector2 value) throws java.lang.Throwable
java.lang.Throwablepublic static Vector2 Reflect(Vector2 vector, Vector2 normal) throws java.lang.Throwable
java.lang.Throwablepublic void setJCOInstance(JCObject instance)
setJCOInstance in class ValueTypepublic static Vector2 SquareRoot(Vector2 value) throws java.lang.Throwable
java.lang.Throwablepublic static Vector2 Subtract(Vector2 left, Vector2 right) throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String ToString(java.lang.String format)
throws java.lang.Throwable,
ArgumentNullException,
OutOfMemoryException,
ArgumentException,
CultureNotFoundException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
InvalidOperationException,
FormatException
public java.lang.String ToString(java.lang.String format,
IFormatProvider formatProvider)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
CultureNotFoundException,
PlatformNotSupportedException,
IndexOutOfRangeException,
ArgumentOutOfRangeException,
ArrayTypeMismatchException,
NotSupportedException,
FormatException,
InvalidOperationException
public static Vector2 Transform(Vector2 position, Matrix3x2 matrix) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
public static Vector2 Transform(Vector2 position, Matrix4x4 matrix) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
public static Vector2 Transform(Vector2 value, Quaternion rotation) throws java.lang.Throwable
java.lang.Throwablepublic static Vector2 TransformNormal(Vector2 normal, Matrix3x2 matrix) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
public static Vector2 TransformNormal(Vector2 normal, Matrix4x4 matrix) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException