Click or drag to resize

Extensions Class

Provides common extensions.
Inheritance Hierarchy
SystemObject
  RAYLASE.SharedExtensions

Namespace: RAYLASE.Shared
Assembly: RAYLASE.Shared (in RAYLASE.Shared.dll) Version: 2.19.0
Syntax
C#
public static class Extensions

The Extensions type exposes the following members.

Methods
 NameDescription
Public Extension MethodAbs Returns the absolute values.
Public Extension MethodAddRangeT Adds a range of items to a collection.
Public Extension MethodAverage(IEnumerabledvec2) Returns the average value.
Public Extension MethodAverage(IEnumerabledvec3) Returns the average value.
Public Extension MethodCopyFromT Clears the list and copies the content from a collection.
Public Extension MethodGetAllMessages Concatenates exception messages recursively through the inner exceptions.
Public Extension MethodGetAllStackTraces Concatenates exception stack traces recursively through the inner exceptions.
Public Extension MethodInheritsFrom Verifies whether a given type inherits from another type. This covers the inheritance from a base generic type.
MyGenericType<int> inherits from MyGenericType <>
Public Extension MethodIntervalRoundAway Rounds a given number to the closest interval away from zero.
Public Extension MethodItemwiseCompareT Compares two sublists item wise.
Public Extension MethodSum(IEnumerabledvec2) Returns the vectors' sum.
Public Extension MethodSum(IEnumerabledvec3) Returns the vectors' sum.
Public Extension MethodToBindablePoint(dvec2) Converts a dvec2 to a BindablePoint.
Public Extension MethodToBindablePoint(dvec3) Converts a dvec3 to a BindablePoint.
Public Extension MethodToBindablePoint(ivec2) Converts a ivec2 to a BindablePoint.
Public Extension MethodToBindablePoint(ivec3) Converts a ivec3 to a BindablePoint.
Public Extension MethodToBindablePoint(dvec3, dmat4) Converts a dvec3 to a transformed BindablePoint.
Public Extension MethodToBoolean Converts visibility into boolean.
Public Extension MethodToDegree(Double) Converts an angle from radians do degree.
Public Extension MethodToDegree(Single) Converts an angle from radians do degree.
Public Extension MethodToDmat2 Converts a Matrix to a dmat2. Offset will be discarded.
Public Extension MethodToDmat3 Converts a Matrix to a dmat3. Offset will be used as third column.
Public Extension MethodToDvec2(BindablePoint) Converts a BindablePoint to a dvec2.
Public Extension MethodToDvec2(Point) Converts a Point to a dvec2.
Public Extension MethodToDvec3(BindablePoint) Converts a BindablePoint to a dvec3.
Public Extension MethodToDvec3(Point) Converts a Point to a dvec2. Z value will be set to zero.
Public Extension MethodToIvec2 Converts a BindablePoint to a ivec2.
Public Extension MethodToIvec3 Converts a BindablePoint to a ivec3.
Public Extension MethodToPoint(dvec2) Converts a dvec3 to a Point.
Public Extension MethodToPoint(dvec3) Converts a dvec3 to a Point.
Public Extension MethodToRadians(Double) Converts an angle from degree do radians.
Public Extension MethodToRadians(Single) Converts an angle from degree do radians.
Public Extension MethodToVector(dvec2) Converts a dvec2 to a Vector.
Public Extension MethodToVector(Point) Converts a Point to a Vector.
Public Extension MethodToVisibility Converts boolean into visibility.
Public Extension MethodWaitOne Waits for a signal or a cancellation. The cancellation exception will raised if a cancellation is requested.
Top
See Also