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.String
assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798estatic java.lang.String
assemblyShortName
Assembly name: System.Private.CoreLibstatic java.lang.String
className
Qualified class name: System.Numerics.Vector2static JCType
classType
The type managed from JCOBridge.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Vector2
Abs(Vector2 value)
static Vector2
Add(Vector2 left, Vector2 right)
static Vector2
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoVector2
, 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, Vector2 right)
static Vector2
Divide(Vector2 left, Single divisor)
static Single
Dot(Vector2 value1, Vector2 value2)
boolean
Equals(Vector2 other)
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typestatic 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(Vector2 left, Vector2 right)
static Vector2
Multiply(Vector2 left, Single right)
static Vector2
Multiply(Single 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)
-
-
-
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.Throwable
Internal 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:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classValueType
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classValueType
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classValueType
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classValueType
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classValueType
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classValueType
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static Vector2 cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoVector2
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
Vector2
instance- 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.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
PlatformNotSupportedException
-
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.Throwable
NotSupportedException
PlatformNotSupportedException
-
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
-
-