Package system.numerics
Class Vector2
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.ValueType
-
- system.numerics.Vector2
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class Vector2 extends ValueType
The base .NET class managing System.Numerics.Vector2, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Numerics.Vector2
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringassemblyFullNameFully assembly qualified name: System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798estatic java.lang.StringassemblyShortNameAssembly name: System.Private.CoreLibstatic java.lang.StringclassNameQualified class name: System.Numerics.Vector2static JCTypeclassTypeThe type managed from JCOBridge.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Vector2Abs(Vector2 value)static Vector2Add(Vector2 left, Vector2 right)static Vector2cast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoVector2, a cast assert is made to check if types are compatible.static Vector2Clamp(Vector2 value1, Vector2 min, Vector2 max)voidCopyTo(Single[] array)voidCopyTo(Single[] array, int index)static SingleDistance(Vector2 value1, Vector2 value2)static SingleDistanceSquared(Vector2 value1, Vector2 value2)static Vector2Divide(Vector2 left, Vector2 right)static Vector2Divide(Vector2 left, Single divisor)static SingleDot(Vector2 value1, Vector2 value2)booleanEquals(Vector2 other)java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class Typestatic Vector2getOne()static Vector2getUnitX()static Vector2getUnitY()static Vector2getZero()SingleLength()SingleLengthSquared()static Vector2Lerp(Vector2 value1, Vector2 value2, Single amount)static Vector2Max(Vector2 value1, Vector2 value2)static Vector2Min(Vector2 value1, Vector2 value2)static Vector2Multiply(Vector2 left, Vector2 right)static Vector2Multiply(Vector2 left, Single right)static Vector2Multiply(Single left, Vector2 right)static Vector2Negate(Vector2 value)static Vector2Normalize(Vector2 value)static Vector2Reflect(Vector2 vector, Vector2 normal)voidsetJCOInstance(JCObject instance)static Vector2SquareRoot(Vector2 value)static Vector2Subtract(Vector2 left, Vector2 right)java.lang.StringToString(java.lang.String format)java.lang.StringToString(java.lang.String format, IFormatProvider formatProvider)static Vector2Transform(Vector2 position, Matrix3x2 matrix)static Vector2Transform(Vector2 position, Matrix4x4 matrix)static Vector2Transform(Vector2 value, Quaternion rotation)static Vector2TransformNormal(Vector2 normal, Matrix3x2 matrix)static Vector2TransformNormal(Vector2 normal, Matrix4x4 matrix)
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Private.CoreLib- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Numerics.Vector2- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Vector2
public Vector2(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
Vector2
public Vector2() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
Vector2
public Vector2(Single value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classValueType- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classValueType- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classValueType- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classValueType- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classValueType
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classValueType- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static Vector2 cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoVector2, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
Vector2instance- Throws:
java.lang.Throwable- in case of error during cast operation
-
Equals
public boolean Equals(Vector2 other) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException
- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionPlatformNotSupportedException
-
Distance
public static Single Distance(Vector2 value1, Vector2 value2) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
DistanceSquared
public static Single DistanceSquared(Vector2 value1, Vector2 value2) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Dot
public static Single Dot(Vector2 value1, Vector2 value2) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Length
public Single Length() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
LengthSquared
public Single LengthSquared() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Abs
public static Vector2 Abs(Vector2 value) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException
- Throws:
java.lang.ThrowableNotSupportedExceptionPlatformNotSupportedException
-
Add
public static Vector2 Add(Vector2 left, Vector2 right) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Clamp
public static Vector2 Clamp(Vector2 value1, Vector2 min, Vector2 max) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Divide
public static Vector2 Divide(Vector2 left, Single divisor) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Divide
public static Vector2 Divide(Vector2 left, Vector2 right) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Lerp
public static Vector2 Lerp(Vector2 value1, Vector2 value2, Single amount) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Max
public static Vector2 Max(Vector2 value1, Vector2 value2) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Min
public static Vector2 Min(Vector2 value1, Vector2 value2) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Multiply
public static Vector2 Multiply(Single left, Vector2 right) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Multiply
public static Vector2 Multiply(Vector2 left, Single right) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Multiply
public static Vector2 Multiply(Vector2 left, Vector2 right) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Negate
public static Vector2 Negate(Vector2 value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Normalize
public static Vector2 Normalize(Vector2 value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Reflect
public static Vector2 Reflect(Vector2 vector, Vector2 normal) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
SquareRoot
public static Vector2 SquareRoot(Vector2 value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Subtract
public static Vector2 Subtract(Vector2 left, Vector2 right) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Transform
public static Vector2 Transform(Vector2 position, Matrix3x2 matrix) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
-
Transform
public static Vector2 Transform(Vector2 position, Matrix4x4 matrix) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
-
Transform
public static Vector2 Transform(Vector2 value, Quaternion rotation) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
TransformNormal
public static Vector2 TransformNormal(Vector2 normal, Matrix3x2 matrix) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
-
TransformNormal
public static Vector2 TransformNormal(Vector2 normal, Matrix4x4 matrix) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
-
ToString
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
-
ToString
public java.lang.String ToString(java.lang.String format) throws java.lang.Throwable, ArgumentNullException, OutOfMemoryException, ArgumentException, CultureNotFoundException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, InvalidOperationException, FormatException
-
CopyTo
public void CopyTo(Single[] array, int index) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
-
CopyTo
public void CopyTo(Single[] array) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
getOne
public static Vector2 getOne() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getUnitX
public static Vector2 getUnitX() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getUnitY
public static Vector2 getUnitY() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getZero
public static Vector2 getZero() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-