diff --git a/X10D.Unity.dll b/X10D.Unity.dll index 8908935..46dc791 100644 Binary files a/X10D.Unity.dll and b/X10D.Unity.dll differ diff --git a/X10D.Unity.xml b/X10D.Unity.xml index 29c4879..f4f8b23 100644 --- a/X10D.Unity.xml +++ b/X10D.Unity.xml @@ -4,6 +4,239 @@ X10D.Unity + + + Represents a box that can be drawn using the class. + + + This structure serves no real purpose except to be used in tandem with . For creating a logical + cuboid, consider using the structure. + + + + + Initializes a new instance of the struct. + + The origin of the box. + The half extents of the box. + + + + Initializes a new instance of the struct. + + The origin of the box. + The half extents of the box. + The orientation of the box. + + + + Gets the origin of the box. + + The origin. + + + + Gets the front-top-left corner of the box, in local space. + + The front-top-left corner. + + + + Gets the front-top-right corner of the box, in local space. + + The front-top-right corner. + + + + Gets the front-bottom-left corner of the box, in local space. + + The front-bottom-left corner. + + + + Gets the front-bottom-right corner of the box, in local space. + + The front-bottom-right corner. + + + + Gets the back-top-left corner of the box, in local space. + + The back-top-left corner. + + + + Gets the back-top-right corner of the box, in local space. + + The back-top-right corner. + + + + Gets the back-bottom-left corner of the box, in local space. + + The back-bottom-left corner. + + + + Gets the back-bottom-right corner of the box, in local space. + + The back-bottom-right corner. + + + + Gets the front-top-left corner of the box, in world space. + + The front-top-left corner. + + + + Gets the front-top-right corner of the box, in world space. + + The front-top-right corner. + + + + Gets the front-bottom-left corner of the box, in world space. + + The front-bottom-left corner. + + + + Gets the front-bottom-right corner of the box, in world space. + + The front-bottom-right corner. + + + + Gets the back-bottom-left corner of the box, in world space. + + The back-bottom-left corner. + + + + Gets the back-bottom-right corner of the box, in world space. + + The back-bottom-right corner. + + + + Gets the back-bottom-right corner of the box, in world space. + + The back-bottom-right corner. + + + + Gets the back-bottom-right corner of the box, in world space. + + The back-bottom-right corner. + + + + Implicitly converts an instance of to an instance of . + + The to convert. + A new instance of . + + + + Implicitly converts an instance of to an instance of . + + The to convert. + A new instance of . + + + + Represents a 2D box that can be drawn using the class. + + + This structure serves no real purpose except to be used in tandem with . For creating a logical + rectangle, consider using the , , , or + structures. + + + + + Initializes a new instance of the struct. + + The origin of the box. + The half extents of the box. + + + + Initializes a new instance of the struct. + + The origin of the box. + The half extents of the box. + The rotation of the box. + + + + Gets the origin of the box. + + The origin. + + + + Gets the top-left corner of the box, in local space. + + The top-left corner. + + + + Gets the top-right corner of the box, in local space. + + The top-right corner. + + + + Gets the bottom-left corner of the box, in local space. + + The bottom-left corner. + + + + Gets the bottom-right corner of the box, in local space. + + The bottom-right corner. + + + + Gets the top-left corner of the box, in world space. + + The top-left corner. + + + + Gets the top-right corner of the box, in world space. + + The top-right corner. + + + + Gets the bottom-left corner of the box, in world space. + + The bottom-left corner. + + + + Gets the bottom-right corner of the box, in world space. + + The bottom-right corner. + + + + Implicitly converts an instance of to an instance of . + + The to convert. + A new instance of . + + + + Implicitly converts an instance of to an instance of . + + The to convert. + A new instance of . + Extension methods for . @@ -18,6 +251,1757 @@ The type of the components to retrieve. An array representing the child components. + + + An extended version of Unity's utility class which offers support for drawing simple + primitives. + + + + + Draws a box. + + The center point. + The extents of the box, halved. + + + + Draws a box with the specified orientation. + + The center point. + The extents of the box, halved. + The orientation of the box. + + + + Draws a box with the specified color. + + The center point. + The extents of the box, halved. + The color of the box. + + + + Draws a box with the specified orientation and color. + + The center point. + The extents of the box, halved. + The orientation of the box. + The color of the box. + + + + Draws a box with the specified color and duration. + + The center point. + The extents of the box, halved. + The color of the box. + + The duration of the box's visibility, in seconds. If 0 is passed, the box is visible for a single frame. + + + + + Draws a box with the specified orientation, color, and duration. + + The center point. + The extents of the box, halved. + The orientation of the box. + The color of the box. + + The duration of the box's visibility, in seconds. If 0 is passed, the box is visible for a single frame. + + + + + Draws a box with the specified color and duration. + + The center point. + The extents of the box, halved. + The color of the box. + + The duration of the box's visibility, in seconds. If 0 is passed, the box is visible for a single frame. + + + if depth test should be applied; otherwise, . Passing + will have the box be obscured by objects closer to the camera. + + + + + Draws a box with the specified orientation, color, and duration. + + The center point. + The extents of the box, halved. + The orientation of the box. + The color of the box. + + The duration of the box's visibility, in seconds. If 0 is passed, the box is visible for a single frame. + + + if depth test should be applied; otherwise, . Passing + will have the box be obscured by objects closer to the camera. + + + + + Draws a box with the specified color. + + The box to draw. + The color of the box. + + + + Draws a box with the specified color and duration. + + The box to draw. + The color of the box. + + The duration of the box's visibility, in seconds. If 0 is passed, the box is visible for a single frame. + + + + + Draws a box with the specified color and duration. + + The box to draw. + The color of the box. + + The duration of the box's visibility, in seconds. If 0 is passed, the box is visible for a single frame. + + + if depth test should be applied; otherwise, . Passing + will have the box be obscured by objects closer to the camera. + + + + + Draws a rectangle. + + The center point. + The extents of the box, halved. + + + + Draws a rectangle with the specified rotation. + + The center point. + The extents of the box, halved. + The rotation of the box. + + + + Draws a rectangle with the specified color. + + The center point. + The extents of the box, halved. + The color of the box. + + + + Draws a rectangle with the specified rotation and color. + + The center point. + The extents of the box, halved. + The rotation of the box. + The color of the box. + + + + Draws a rectangle with the specified color and duration. + + The center point. + The extents of the box, halved. + The color of the box. + + The duration of the box's visibility, in seconds. If 0 is passed, the box is visible for a single frame. + + + + + Draws a rectangle with the specified rotation, color, and duration. + + The center point. + The extents of the box, halved. + The rotation of the box. + The color of the box. + + The duration of the box's visibility, in seconds. If 0 is passed, the box is visible for a single frame. + + + + + Draws a rectangle with the specified color and duration. + + The center point. + The extents of the box, halved. + The color of the box. + + The duration of the box's visibility, in seconds. If 0 is passed, the box is visible for a single frame. + + + if depth test should be applied; otherwise, . Passing + will have the box be obscured by objects closer to the camera. + + + + + Draws a rectangle with the specified rotation, color, and duration. + + The center point. + The extents of the box, halved. + The rotation of the box. + The color of the box. + + The duration of the box's visibility, in seconds. If 0 is passed, the box is visible for a single frame. + + + if depth test should be applied; otherwise, . Passing + will have the box be obscured by objects closer to the camera. + + + + + Draws a rectangle with the specified color. + + The box to draw. + The color of the box. + + + + Draws a rectangle with the specified color and duration. + + The box to draw. + The color of the box. + + The duration of the box's visibility, in seconds. If 0 is passed, the box is visible for a single frame. + + + + + Draws a rectangle with the specified color and duration. + + The box to draw. + The color of the box. + + The duration of the box's visibility, in seconds. If 0 is passed, the box is visible for a single frame. + + + if depth test should be applied; otherwise, . Passing + will have the box be obscured by objects closer to the camera. + + + + + Draws a rectangle with the specified color. + + The rectangle to draw. + The color of the box. + + + + Draws a rectangle with the specified color and duration. + + The rectangle to draw. + The color of the box. + + The duration of the box's visibility, in seconds. If 0 is passed, the box is visible for a single frame. + + + + + Draws a rectangle with the specified color and duration. + + The rectangle to draw. + The color of the box. + + The duration of the box's visibility, in seconds. If 0 is passed, the box is visible for a single frame. + + + if depth test should be applied; otherwise, . Passing + will have the box be obscured by objects closer to the camera. + + + + + Draws a rectangle with the specified color. + + The rectangle to draw. + The color of the box. + + + + Draws a rectangle with the specified color and duration. + + The rectangle to draw. + The color of the box. + + The duration of the box's visibility, in seconds. If 0 is passed, the box is visible for a single frame. + + + + + Draws a rectangle with the specified color and duration. + + The rectangle to draw. + The color of the box. + + The duration of the box's visibility, in seconds. If 0 is passed, the box is visible for a single frame. + + + if depth test should be applied; otherwise, . Passing + will have the box be obscured by objects closer to the camera. + + + + + Draws a rectangle with the specified color. + + The rectangle to draw. + The color of the box. + + + + Draws a rectangle with the specified color and duration. + + The rectangle to draw. + The color of the box. + + The duration of the box's visibility, in seconds. If 0 is passed, the box is visible for a single frame. + + + + + Draws a rectangle with the specified color and duration. + + The rectangle to draw. + The color of the box. + + The duration of the box's visibility, in seconds. If 0 is passed, the box is visible for a single frame. + + + if depth test should be applied; otherwise, . Passing + will have the box be obscured by objects closer to the camera. + + + + + Draws a rectangle with the specified color. + + The rectangle to draw. + The color of the box. + + + + Draws a rectangle with the specified color and duration. + + The rectangle to draw. + The color of the box. + + The duration of the box's visibility, in seconds. If 0 is passed, the box is visible for a single frame. + + + + + Draws a rectangle with the specified color and duration. + + The rectangle to draw. + The color of the box. + + The duration of the box's visibility, in seconds. If 0 is passed, the box is visible for a single frame. + + + if depth test should be applied; otherwise, . Passing + will have the box be obscured by objects closer to the camera. + + + + + Draws a circle with the specified color. + + The center point of the circle. + The radius of the circle. + The number of sides to generate. + + + + Draws a circle with the specified color. + + The center point of the circle. + The radius of the circle. + The number of sides to generate. + The color of the circle. + + + + Draws a circle with the specified color and duration. + + The center point of the circle. + The radius of the circle. + The number of sides to generate. + The color of the circle. + + The duration of the circle's visibility, in seconds. If 0 is passed, the circle is visible for a single frame. + + + + + Draws a circle with the specified color and duration. + + The center point of the circle. + The radius of the circle. + The number of sides to generate. + The color of the circle. + + The duration of the circle's visibility, in seconds. If 0 is passed, the circle is visible for a single frame. + + + if depth test should be applied; otherwise, . Passing + will have the circle be obscured by objects closer to the camera. + + + + + Draws a circle. + + The center point of the circle. + The radius of the circle. + The number of sides to generate. + The drawing offset of the circle. + The color of the circle. + + The duration of the circle's visibility, in seconds. If 0 is passed, the circle is visible for a single frame. + + + if depth test should be applied; otherwise, . Passing + will have the circle be obscured by objects closer to the camera. + + + + + Draws a circle with the specified color. + + The circle to draw. + The number of sides to generate. + + + + Draws a circle with the specified color. + + The circle to draw. + The number of sides to generate. + The drawing offset of the circle. + + + + Draws a circle with the specified color. + + The circle to draw. + The number of sides to generate. + The color of the circle. + + + + Draws a circle with the specified color. + + The circle to draw. + The number of sides to generate. + The drawing offset of the circle. + The color of the circle. + + + + Draws a circle with the specified color and duration. + + The circle to draw. + The number of sides to generate. + The color of the circle. + + The duration of the circle's visibility, in seconds. If 0 is passed, the circle is visible for a single frame. + + + + + Draws a circle with the specified color and duration. + + The circle to draw. + The number of sides to generate. + The drawing offset of the circle. + The color of the circle. + + The duration of the circle's visibility, in seconds. If 0 is passed, the circle is visible for a single frame. + + + + + Draws a circle with the specified color and duration. + + The circle to draw. + The number of sides to generate. + The color of the circle. + + The duration of the circle's visibility, in seconds. If 0 is passed, the circle is visible for a single frame. + + + if depth test should be applied; otherwise, . Passing + will have the circle be obscured by objects closer to the camera. + + + + + Draws a circle. + + The circle to draw. + The number of sides to generate. + The drawing offset of the circle. + The color of the circle. + + The duration of the circle's visibility, in seconds. If 0 is passed, the circle is visible for a single frame. + + + if depth test should be applied; otherwise, . Passing + will have the circle be obscured by objects closer to the camera. + + + + + Draws a circle with the specified color. + + The circle to draw. + The number of sides to generate. + + + + Draws a circle with the specified color. + + The circle to draw. + The number of sides to generate. + The drawing offset of the circle. + + + + Draws a circle with the specified color. + + The circle to draw. + The number of sides to generate. + The color of the circle. + + + + Draws a circle with the specified color. + + The circle to draw. + The number of sides to generate. + The drawing offset of the circle. + The color of the circle. + + + + Draws a circle with the specified color and duration. + + The circle to draw. + The number of sides to generate. + The color of the circle. + + The duration of the circle's visibility, in seconds. If 0 is passed, the circle is visible for a single frame. + + + + + Draws a circle with the specified color and duration. + + The circle to draw. + The number of sides to generate. + The drawing offset of the circle. + The color of the circle. + + The duration of the circle's visibility, in seconds. If 0 is passed, the circle is visible for a single frame. + + + + + Draws a circle with the specified color and duration. + + The circle to draw. + The number of sides to generate. + The color of the circle. + + The duration of the circle's visibility, in seconds. If 0 is passed, the circle is visible for a single frame. + + + if depth test should be applied; otherwise, . Passing + will have the circle be obscured by objects closer to the camera. + + + + + Draws a circle. + + The circle to draw. + The number of sides to generate. + The drawing offset of the circle. + The color of the circle. + + The duration of the circle's visibility, in seconds. If 0 is passed, the circle is visible for a single frame. + + + if depth test should be applied; otherwise, . Passing + will have the circle be obscured by objects closer to the camera. + + + + + The default value to use for the duration parameter. + + + + + The default value to use for the depthTest parameter. + + + + + Gets a value indicating whether this is a debug build. + + if this is a debug build; otherwise, . + + + + Gets a value indicating whether the developer console is visible. + + if the developer console is visible; otherwise, . + + + + Gets the default Unity debug logger. + + The Unity debug logger. + + + + Asserts a condition. + + The condition to assert. + + + + Asserts a condition. + + The condition to assert. + The object to which the assertion applies. + + + + Asserts a condition. + + The condition to assert. + The message to log. + + + + Asserts a condition. + + The condition to assert. + The message to log. + + + + Logs a message to the Unity Console. + + The condition to assert. + The message to log. + The object to which the assertion applies. + + + + Logs a message to the Unity Console. + + The condition to assert. + The message to log. + The object to which the assertion applies. + + + + Pauses the editor. + + + + + Clears the developer console. + + + + + Populate an unmanaged buffer with the current managed call stack as a sequence of UTF-8 bytes, without allocating GC + memory. + + The target buffer to receive the callstack text. + The maximum number of bytes to write. + The project folder path, to clean up path names. + The number of bytes written into the buffer. + + + + Logs a message to the Unity Console. + + The message to log. + + + + Logs a message to the Unity Console. + + The message to log. + + + + Logs a message to the Unity Console. + + The message to log. + The object to which the message applies. + + + + Logs a message to the Unity Console. + + The message to log. + The object to which the message applies. + + + + Logs an assertion message to the Unity Console. + + The message to log. + + + + Logs an assertion message to the Unity Console. + + The message to log. + + + + Logs an assertion message to the Unity Console. + + The message to log. + The object to which the message applies. + + + + Logs an assertion message to the Unity Console. + + The message to log. + The object to which the message applies. + + + + Logs an error message to the Unity Console. + + The message to log. + + + + Logs an error message to the Unity Console. + + The message to log. + + + + Logs an error message to the Unity Console. + + The message to log. + The object to which the message applies. + + + + Logs an error message to the Unity Console. + + The message to log. + The object to which the message applies. + + + + Logs a formatted error message to the Unity Console. + + The format string of the message to log. + The format arguments. + + + + Logs a formatted error message to the Unity Console. + + The object to which this message applies. + The format string of the message to log. + The format arguments. + + + + Logs a formatted message to the Unity Console. + + The format string of the message to log. + The format arguments. + + + + Logs a formatted message to the Unity Console. + + The object to which this message applies. + The format string of the message to log. + The format arguments. + + + + Logs a warning message to the Unity Console. + + The message to log. + + + + Logs a warning message to the Unity Console. + + The message to log. + + + + Logs a warning message to the Unity Console. + + The message to log. + The object to which the message applies. + + + + Logs a warning message to the Unity Console. + + The message to log. + The object to which the message applies. + + + + Logs a formatted warning message to the Unity Console. + + The format string of the message to log. + The format arguments. + + + + Logs a formatted warning message to the Unity Console. + + The object to which this message applies. + The format string of the message to log. + The format arguments. + + + + Draws an ellipse with the specified color. + + The center point of the ellipse. + The radius of the ellipse. + The number of sides to generate. + + + + Draws an ellipse with the specified color. + + The center point of the ellipse. + The radius of the ellipse. + The number of sides to generate. + The color of the ellipse. + + + + Draws an ellipse with the specified color and duration. + + The center point of the ellipse. + The radius of the ellipse. + The number of sides to generate. + The color of the ellipse. + + The duration of the ellipse's visibility, in seconds. If 0 is passed, the ellipse is visible for a single frame. + + + + + Draws an ellipse with the specified color and duration. + + The center point of the ellipse. + The radius of the ellipse. + The number of sides to generate. + The color of the ellipse. + + The duration of the ellipse's visibility, in seconds. If 0 is passed, the ellipse is visible for a single frame. + + + if depth test should be applied; otherwise, . Passing + will have the ellipse be obscured by objects closer to the camera. + + + + + Draws an ellipse. + + The center point of the ellipse. + The radius of the ellipse. + The number of sides to generate. + The drawing offset of the ellipse. + The color of the ellipse. + + The duration of the ellipse's visibility, in seconds. If 0 is passed, the ellipse is visible for a single frame. + + + if depth test should be applied; otherwise, . Passing + will have the ellipse be obscured by objects closer to the camera. + + + + + Draws an ellipse with the specified color. + + The center point of the ellipse. + The horizontal radius of the ellipse. + The vertical radius of the ellipse. + The number of sides to generate. + + + + Draws an ellipse with the specified color. + + The center point of the ellipse. + The horizontal radius of the ellipse. + The vertical radius of the ellipse. + The number of sides to generate. + The color of the ellipse. + + + + Draws an ellipse with the specified color and duration. + + The center point of the ellipse. + The horizontal radius of the ellipse. + The vertical radius of the ellipse. + The number of sides to generate. + The color of the ellipse. + + The duration of the ellipse's visibility, in seconds. If 0 is passed, the ellipse is visible for a single frame. + + + + + Draws an ellipse with the specified color and duration. + + The center point of the ellipse. + The horizontal radius of the ellipse. + The vertical radius of the ellipse. + The number of sides to generate. + The color of the ellipse. + + The duration of the ellipse's visibility, in seconds. If 0 is passed, the ellipse is visible for a single frame. + + + if depth test should be applied; otherwise, . Passing + will have the ellipse be obscured by objects closer to the camera. + + + + + Draws an ellipse. + + The center point of the ellipse. + The horizontal radius of the ellipse. + The vertical radius of the ellipse. + The number of sides to generate. + The drawing offset of the ellipse. + The color of the ellipse. + + The duration of the ellipse's visibility, in seconds. If 0 is passed, the ellipse is visible for a single frame. + + + if depth test should be applied; otherwise, . Passing + will have the ellipse be obscured by objects closer to the camera. + + + + + Draws an ellipse with the specified color. + + The ellipse to draw. + The number of sides to generate. + + + + Draws an ellipse with the specified color. + + The ellipse to draw. + The number of sides to generate. + The drawing offset of the ellipse. + + + + Draws an ellipse with the specified color. + + The ellipse to draw. + The number of sides to generate. + The color of the ellipse. + + + + Draws an ellipse with the specified color. + + The ellipse to draw. + The number of sides to generate. + The drawing offset of the ellipse. + The color of the ellipse. + + + + Draws an ellipse with the specified color and duration. + + The ellipse to draw. + The number of sides to generate. + The color of the ellipse. + + The duration of the ellipse's visibility, in seconds. If 0 is passed, the ellipse is visible for a single frame. + + + + + Draws an ellipse with the specified color and duration. + + The ellipse to draw. + The number of sides to generate. + The drawing offset of the ellipse. + The color of the ellipse. + + The duration of the ellipse's visibility, in seconds. If 0 is passed, the ellipse is visible for a single frame. + + + + + Draws an ellipse with the specified color and duration. + + The ellipse to draw. + The number of sides to generate. + The color of the ellipse. + + The duration of the ellipse's visibility, in seconds. If 0 is passed, the ellipse is visible for a single frame. + + + if depth test should be applied; otherwise, . Passing + will have the ellipse be obscured by objects closer to the camera. + + + + + Draws an ellipse. + + The ellipse to draw. + The number of sides to generate. + The drawing offset of the ellipse. + The color of the ellipse. + + The duration of the ellipse's visibility, in seconds. If 0 is passed, the ellipse is visible for a single frame. + + + if depth test should be applied; otherwise, . Passing + will have the ellipse be obscured by objects closer to the camera. + + + + + Draws an ellipse with the specified color. + + The ellipse to draw. + The number of sides to generate. + + + + Draws an ellipse with the specified color. + + The ellipse to draw. + The number of sides to generate. + The drawing offset of the ellipse. + + + + Draws an ellipse with the specified color. + + The ellipse to draw. + The number of sides to generate. + The color of the ellipse. + + + + Draws an ellipse with the specified color. + + The ellipse to draw. + The number of sides to generate. + The drawing offset of the ellipse. + The color of the ellipse. + + + + Draws an ellipse with the specified color and duration. + + The ellipse to draw. + The number of sides to generate. + The color of the ellipse. + + The duration of the ellipse's visibility, in seconds. If 0 is passed, the ellipse is visible for a single frame. + + + + + Draws an ellipse with the specified color and duration. + + The ellipse to draw. + The number of sides to generate. + The drawing offset of the ellipse. + The color of the ellipse. + + The duration of the ellipse's visibility, in seconds. If 0 is passed, the ellipse is visible for a single frame. + + + + + Draws an ellipse with the specified color and duration. + + The ellipse to draw. + The number of sides to generate. + The color of the ellipse. + + The duration of the ellipse's visibility, in seconds. If 0 is passed, the ellipse is visible for a single frame. + + + if depth test should be applied; otherwise, . Passing + will have the ellipse be obscured by objects closer to the camera. + + + + + Draws an ellipse. + + The ellipse to draw. + The number of sides to generate. + The drawing offset of the ellipse. + The color of the ellipse. + + The duration of the ellipse's visibility, in seconds. If 0 is passed, the ellipse is visible for a single frame. + + + if depth test should be applied; otherwise, . Passing + will have the ellipse be obscured by objects closer to the camera. + + + + + Draws a line between start and end points. + + The starting point. + The ending point. + + + + Draws a line between start and end points, with the specified color. + + The starting point. + The ending point. + The color of the line. + + + + Draws a line between start and end points, with the specified color. + + The starting point. + The ending point. + The color of the line. + + The duration of the line's visibility, in seconds. If 0 is passed, the line is visible for a single frame. + + + + + Draws a line between start and end points, with the specified color. + + The starting point. + The ending point. + The color of the line. + + The duration of the line's visibility, in seconds. If 0 is passed, the line is visible for a single frame. + + + if depth test should be applied; otherwise, . Passing + will have the line be obscured by objects closer to the camera. + + + + + Draws a line between start and end points. + + The line to draw. + + + + Draws a line between start and end points, with the specified color. + + The line to draw. + The color of the line. + + + + Draws a line between start and end points, with the specified color. + + The line to draw. + The color of the line. + + The duration of the line's visibility, in seconds. If 0 is passed, the line is visible for a single frame. + + + + + Draws a line between start and end points, with the specified color. + + The line to draw. + The color of the line. + + The duration of the line's visibility, in seconds. If 0 is passed, the line is visible for a single frame. + + + if depth test should be applied; otherwise, . Passing + will have the line be obscured by objects closer to the camera. + + + + + Draws a line between start and end points. + + The line to draw. + + + + Draws a line between start and end points, with the specified color. + + The line to draw. + The color of the line. + + + + Draws a line between start and end points, with the specified color. + + The line to draw. + The color of the line. + + The duration of the line's visibility, in seconds. If 0 is passed, the line is visible for a single frame. + + + + + Draws a line between start and end points, with the specified color. + + The line to draw. + The color of the line. + + The duration of the line's visibility, in seconds. If 0 is passed, the line is visible for a single frame. + + + if depth test should be applied; otherwise, . Passing + will have the line be obscured by objects closer to the camera. + + + + + Draws a line between start and end points. + + The line to draw. + + + + Draws a line between start and end points, with the specified color. + + The line to draw. + The color of the line. + + + + Draws a line between start and end points, with the specified color. + + The line to draw. + The color of the line. + + The duration of the line's visibility, in seconds. If 0 is passed, the line is visible for a single frame. + + + + + Draws a line between start and end points, with the specified color. + + The line to draw. + The color of the line. + + The duration of the line's visibility, in seconds. If 0 is passed, the line is visible for a single frame. + + + if depth test should be applied; otherwise, . Passing + will have the line be obscured by objects closer to the camera. + + + + + Draws a polygon. + + The polygon to draw. + + + + Draws a polygon. + + The polygon to draw. + The drawing offset of the polygon. + + + + Draws a polygon. + + The polygon to draw. + The color to use for drawing. + + + + Draws a polygon. + + The polygon to draw. + The drawing offset of the polygon. + The color to use for drawing. + + + + Draws a polygon. + + The polygon to draw. + The color to use for drawing. + + The duration of the polygon's visibility, in seconds. If 0 is passed, the polygon is visible for a single frame. + + + + + Draws a polygon. + + The polygon to draw. + The drawing offset of the polygon. + The color to use for drawing. + + The duration of the polygon's visibility, in seconds. If 0 is passed, the polygon is visible for a single frame. + + + + + Draws a polygon. + + The polygon to draw. + The color to use for drawing. + + The duration of the polygon's visibility, in seconds. If 0 is passed, the polygon is visible for a single frame. + + + if depth test should be applied; otherwise, . Passing + will have the box be obscured by objects closer to the camera. + + + + + Draws a polygon. + + The polygon to draw. + The drawing offset of the polygon. + The color to use for drawing. + + The duration of the polygon's visibility, in seconds. If 0 is passed, the polygon is visible for a single frame. + + + if depth test should be applied; otherwise, . Passing + will have the box be obscured by objects closer to the camera. + + + + + Draws a polygon. + + The polygon to draw. + + + + Draws a polygon. + + The polygon to draw. + The drawing offset of the polygon. + + + + Draws a polygon. + + The polygon to draw. + The color to use for drawing. + + + + Draws a polygon. + + The polygon to draw. + The drawing offset of the polygon. + The color to use for drawing. + + + + Draws a polygon. + + The polygon to draw. + The color to use for drawing. + + The duration of the polygon's visibility, in seconds. If 0 is passed, the polygon is visible for a single frame. + + + + + Draws a polygon. + + The polygon to draw. + The drawing offset of the polygon. + The color to use for drawing. + + The duration of the polygon's visibility, in seconds. If 0 is passed, the polygon is visible for a single frame. + + + + + Draws a polygon. + + The polygon to draw. + The color to use for drawing. + + The duration of the polygon's visibility, in seconds. If 0 is passed, the polygon is visible for a single frame. + + + if depth test should be applied; otherwise, . Passing + will have the box be obscured by objects closer to the camera. + + + + + Draws a polygon. + + The polygon to draw. + The drawing offset of the polygon. + The color to use for drawing. + + The duration of the polygon's visibility, in seconds. If 0 is passed, the polygon is visible for a single frame. + + + if depth test should be applied; otherwise, . Passing + will have the box be obscured by objects closer to the camera. + + + + + Draws a polyhedron. + + The polyhedron to draw. + + + + Draws a polyhedron. + + The polyhedron to draw. + The drawing offset of the polyhedron. + + + + Draws a polyhedron. + + The polyhedron to draw. + The color to use for drawing. + + + + Draws a polyhedron. + + The polyhedron to draw. + The drawing offset of the polyhedron. + The color to use for drawing. + + + + Draws a polyhedron. + + The polyhedron to draw. + The color to use for drawing. + + The duration of the polyhedron's visibility, in seconds. If 0 is passed, the polyhedron is visible for a single frame. + + + + + Draws a polyhedron. + + The polyhedron to draw. + The drawing offset of the polyhedron. + The color to use for drawing. + + The duration of the polyhedron's visibility, in seconds. If 0 is passed, the polyhedron is visible for a single frame. + + + + + Draws a polyhedron. + + The polyhedron to draw. + The color to use for drawing. + + The duration of the polyhedron's visibility, in seconds. If 0 is passed, the polyhedron is visible for a single frame. + + + if depth test should be applied; otherwise, . Passing + will have the box be obscured by objects closer to the camera. + + + + + Draws a polyhedron. + + The polyhedron to draw. + The drawing offset of the polyhedron. + The color to use for drawing. + + The duration of the polyhedron's visibility, in seconds. If 0 is passed, the polyhedron is visible for a single frame. + + + if depth test should be applied; otherwise, . Passing + will have the box be obscured by objects closer to the camera. + + + + + Draws a ray. + + The ray to draw. + + + + Draws a ray. + + The ray to draw. + The color of the line. + + + + Draws a ray. + + The ray to draw. + The color of the line. + + The duration of the line's visibility, in seconds. If 0 is passed, the line is visible for a single frame. + + + + + Draws a ray. + + The ray to draw. + The color of the line. + + The duration of the line's visibility, in seconds. If 0 is passed, the line is visible for a single frame. + + + if depth test should be applied; otherwise, . Passing + will have the line be obscured by objects closer to the camera. + + + + + Draws a ray. + + The starting point. + The direction. + + + + Draws a ray. + + The starting point. + The direction. + The color of the line. + + + + Draws a ray. + + The starting point. + The direction. + The color of the line. + + The duration of the line's visibility, in seconds. If 0 is passed, the line is visible for a single frame. + + + + + Draws a ray. + + The starting point. + The direction. + The color of the line. + + The duration of the line's visibility, in seconds. If 0 is passed, the line is visible for a single frame. + + + if depth test should be applied; otherwise, . Passing + will have the line be obscured by objects closer to the camera. + + + + + Draws a sphere with the specified color. + + The center point of the sphere. + The radius of the sphere. + The number of sides to generate. + + + + Draws a sphere with the specified color. + + The center point of the sphere. + The radius of the sphere. + The number of sides to generate. + The color of the sphere. + + + + Draws a sphere with the specified color and duration. + + The center point of the sphere. + The radius of the sphere. + The number of sides to generate. + The color of the sphere. + + The duration of the sphere's visibility, in seconds. If 0 is passed, the sphere is visible for a single frame. + + + + + Draws a sphere with the specified color and duration. + + The center point of the sphere. + The radius of the sphere. + The number of sides to generate. + The color of the sphere. + + The duration of the sphere's visibility, in seconds. If 0 is passed, the sphere is visible for a single frame. + + + if depth test should be applied; otherwise, . Passing + will have the sphere be obscured by objects closer to the camera. + + + + + Draws a sphere. + + The center point of the sphere. + The radius of the sphere. + The number of sides to generate. + The drawing offset of the sphere. + The color of the sphere. + + The duration of the sphere's visibility, in seconds. If 0 is passed, the sphere is visible for a single frame. + + + if depth test should be applied; otherwise, . Passing + will have the sphere be obscured by objects closer to the camera. + + + + + Draws a sphere with the specified color. + + The sphere to draw. + The number of sides to generate. + + + + Draws a sphere with the specified color. + + The sphere to draw. + The number of sides to generate. + The drawing offset of the sphere. + + + + Draws a sphere with the specified color. + + The sphere to draw. + The number of sides to generate. + The color of the sphere. + + + + Draws a sphere with the specified color. + + The sphere to draw. + The number of sides to generate. + The drawing offset of the sphere. + The color of the sphere. + + + + Draws a sphere with the specified color and duration. + + The sphere to draw. + The number of sides to generate. + The color of the sphere. + + The duration of the sphere's visibility, in seconds. If 0 is passed, the sphere is visible for a single frame. + + + + + Draws a sphere with the specified color and duration. + + The sphere to draw. + The number of sides to generate. + The drawing offset of the sphere. + The color of the sphere. + + The duration of the sphere's visibility, in seconds. If 0 is passed, the sphere is visible for a single frame. + + + + + Draws a sphere with the specified color and duration. + + The sphere to draw. + The number of sides to generate. + The color of the sphere. + + The duration of the sphere's visibility, in seconds. If 0 is passed, the sphere is visible for a single frame. + + + if depth test should be applied; otherwise, . Passing + will have the sphere be obscured by objects closer to the camera. + + + + + Draws a sphere. + + The sphere to draw. + The number of sides to generate. + The drawing offset of the sphere. + The color of the sphere. + + The duration of the sphere's visibility, in seconds. If 0 is passed, the sphere is visible for a single frame. + + + if depth test should be applied; otherwise, . Passing + will have the sphere be obscured by objects closer to the camera. + + Drawing-related extensions for . @@ -205,6 +2189,91 @@ The point to convert. The resulting . + + + Drawing-related extension methods for . + + + + + Adds a vertex to this polygon. + + The polygon whose points to update. + The point to add. + + + + Adds a collection of vertices to this polygon. + + The polygon whose vertices to update. + The vertices to add. + + + + Drawing-related extension methods for . + + + + + Adds a point to this polygon. + + The polygon whose vertices to update. + The vertex to add. + + + + Adds a point to this polygon. + + The polygon whose vertices to update. + The vertex to add. + + + + Adds a collection of vertices to this polygon. + + The polygon whose vertices to update. + The vertices to add. + + + + Adds a collection of vertices to this polygon. + + The polygon whose vertices to update. + The vertices to add. + + + + Drawing-related extension methods for . + + + + + Adds a vertex to this polyhedron. + + The polyhedron whose vertices to update. + The vertex to add. + + + + Adds a vertex to this polyhedron. + + The polyhedron whose vertices to update. + The vertex to add. + + + + Adds a collection of vertices to this polyhedron. + + The polyhedron whose vertices to update. + The vertices to add. + + + + Adds a collection of vertices to this polyhedron. + + The polyhedron whose vertices to update. + The vertices to add. + Extension methods for . @@ -632,6 +2701,13 @@ The vector to convert. The resulting . + + + Converts the current vector to a . + + The vector to convert. + The converted vector. + Returns a vector whose Y component is the same as the specified vector, and whose X component is a new value. @@ -729,6 +2805,13 @@ The Y component value. The Z component value. + + + Converts the current vector to a . + + The vector to convert. + The converted vector. + Returns a vector whose Y and Z components are the same as the specified vector, and whose X component is a new value. diff --git a/X10D.dll b/X10D.dll index 8473359..9ef6731 100644 Binary files a/X10D.dll and b/X10D.dll differ diff --git a/X10D.xml b/X10D.xml index cce5765..df34386 100644 --- a/X10D.xml +++ b/X10D.xml @@ -889,6 +889,14 @@ The unit circle. That is, a circle whose center point is (0, 0) and whose radius is 1. + + + Initializes a new instance of the struct. + + The X coordinate of the center point. + The Y coordinate of the center point. + The radius of the circle. + Initializes a new instance of the struct. @@ -1101,6 +1109,14 @@ The unit circle. That is, a circle whose center point is (0, 0) and whose radius is 1. + + + Initializes a new instance of the struct. + + The X coordinate of the center point. + The Y coordinate of the center point. + The radius of the circle. + Initializes a new instance of the struct. @@ -1211,9 +1227,23 @@ ; otherwise, . + + + Explicitly converts a to a . + + The circle to convert. + The converted circle. + + + + Implicitly converts a to a . + + The circle to convert. + The converted circle. + - Compares this instance to another . + Compares this instance to another . The other object. @@ -1369,9 +1399,496 @@ component is . + + + Represents a cuboid in 3D space, which uses single-precision floating-point numbers for its coordinates. + + + + + The empty cuboid. That is, a cuboid whose size is zero. + + + + + A cube. That is, a cuboid whose size is the same in all three dimensions. + + A cube with the size (1, 1, 1). + + + + Initializes a new instance of the struct. + + The center X coordinate. + The center Y coordinate. + The center Z coordinate. + The width. + The height. + The depth. + + + + Initializes a new instance of the struct. + + The center X coordinate. + The center Y coordinate. + The center Z coordinate. + The width. + The height. + The depth. + The yaw. + The pitch. + The roll. + + + + Initializes a new instance of the struct. + + The center point. + The size. + + + + Initializes a new instance of the struct. + + The center point. + The size. + The orientation of the cuboid. + + + + Initializes a new instance of the struct. + + The center point. + The size. + The orientation of the cuboid. + + + + Gets the center point of the cuboid. + + The center point. + + + + Gets the orientation of this cuboid. + + The orientation. + + + + Gets the size of the cuboid. + + The size. + + + + Gets the front-top-left corner of the box, in local space. + + The front-top-left corner. + + + + Gets the front-top-right corner of the box, in local space. + + The front-top-right corner. + + + + Gets the front-bottom-left corner of the box, in local space. + + The front-bottom-left corner. + + + + Gets the front-bottom-right corner of the box, in local space. + + The front-bottom-right corner. + + + + Gets the back-top-left corner of the box, in local space. + + The back-top-left corner. + + + + Gets the back-top-right corner of the box, in local space. + + The back-top-right corner. + + + + Gets the back-bottom-left corner of the box, in local space. + + The back-bottom-left corner. + + + + Gets the back-bottom-right corner of the box, in local space. + + The back-bottom-right corner. + + + + Gets the front-top-left corner of the box, in world space. + + The front-top-left corner. + + + + Gets the front-top-right corner of the box, in world space. + + The front-top-right corner. + + + + Gets the front-bottom-left corner of the box, in world space. + + The front-bottom-left corner. + + + + Gets the front-bottom-right corner of the box, in world space. + + The front-bottom-right corner. + + + + Gets the back-bottom-left corner of the box, in world space. + + The back-bottom-left corner. + + + + Gets the back-bottom-right corner of the box, in world space. + + The back-bottom-right corner. + + + + Gets the back-bottom-right corner of the box, in world space. + + The back-bottom-right corner. + + + + Gets the back-bottom-right corner of the box, in world space. + + The back-bottom-right corner. + + + + Gets the volume of this cuboid. + + The volume. + + + + Returns a value indicating whether two instances of are not equal. + + The first instance. + The second instance. + + if and are considered not equal; otherwise, + . + + + + + Returns a value indicating whether two instances of are not equal. + + The first instance. + The second instance. + + if and are considered not equal; otherwise, + . + + + + + + + + Returns a value indicating whether this instance and another instance are equal. + + The instance with which to compare. + + if this instance and are considered equal; otherwise, + . + + + + + + + + Represents an ellipse that is composed of a 32-bit signed integer center point and radius. + + + + + The empty ellipse. That is, an ellipse whose center point is (0, 0) and whose two radii are 0. + + + + + The unit ellipse. That is, an ellipse whose center point is (0, 0) and whose two radii are 1. + + + + + Initializes a new instance of the struct. + + The X coordinate of the center point. + The Y coordinate of the center point. + The horizontal radius of the ellipse. + The vertical radius of the ellipse. + + + + Initializes a new instance of the struct. + + The center point of the ellipse. + The radius of the ellipse. + + + + Gets the area of the ellipse. + + The area of the ellipse, calculated as πab. + + + + Gets the center point of the ellipse. + + The center point. + + + + Gets the approximate circumference of the ellipse. + + + The approximate circumference of the ellipse, calculated as + π(a+b)(3([(a-b)²]/(a+b)²(sqrt(-3(((a-b)²)/(a+b)²)+4+10))+1). + + + + + Gets the horizontal radius of the ellipse. + + The horizontal radius. + + + + Gets the radius of the ellipse. + + The radius. + + + + Gets the vertical radius of the ellipse. + + The vertical radius. + + + + Returns a value indicating whether two instances of are equal. + + The first instance. + The second instance. + + if and are considered equal; otherwise, + . + + + + + Returns a value indicating whether two instances of are not equal. + + The first instance. + The second instance. + + if and are considered not equal; otherwise, + . + + + + + Implicitly converts a to an . + + The circle to convert. + The converted ellipse. + + + + + + + Returns a value indicating whether this instance and another instance are equal. + + The instance with which to compare. + + if this instance and are considered equal; otherwise, + . + + + + + + + + Represents an ellipse that is composed of a single-precision floating-point center point and radius. + + + + + The empty ellipse. That is, an ellipse whose center point is (0, 0) and whose two radii are 0. + + + + + The unit ellipse. That is, an ellipse whose center point is (0, 0) and whose two radii are 1. + + + + + Initializes a new instance of the struct. + + The X coordinate of the center point. + The Y coordinate of the center point. + The horizontal radius of the ellipse. + The vertical radius of the ellipse. + + + + Initializes a new instance of the struct. + + The center point of the ellipse. + The radius of the ellipse. + + + + Initializes a new instance of the struct. + + The center point of the ellipse. + The radius of the ellipse. + + + + Initializes a new instance of the struct. + + The center point of the ellipse. + The radius of the ellipse. + + + + Gets the area of the ellipse. + + The area of the ellipse, calculated as πab. + + + + Gets the center point of the ellipse. + + The center point. + + + + Gets the approximate circumference of the ellipse. + + + The approximate circumference of the ellipse, calculated as + π(a+b)(3([(a-b)²]/(a+b)²(sqrt(-3(((a-b)²)/(a+b)²)+4+10))+1). + + + + + Gets the horizontal radius of the ellipse. + + The horizontal radius. + + + + Gets the radius of the ellipse. + + The radius. + + + + Gets the vertical radius of the ellipse. + + The vertical radius. + + + + Returns a value indicating whether two instances of are equal. + + The first instance. + The second instance. + + if and are considered equal; otherwise, + . + + + + + Returns a value indicating whether two instances of are not equal. + + The first instance. + The second instance. + + if and are considered not equal; otherwise, + . + + + + + Implicitly converts a to an . + + The circle to convert. + The converted ellipse. + + + + Implicitly converts a to an . + + The circle to convert. + The converted ellipse. + + + + Implicitly converts an to an . + + The ellipse to convert. + The converted ellipse. + + + + Explicitly converts an to an . + + The ellipse to convert. + The converted ellipse. + + + + + + + Returns a value indicating whether this instance and another instance are equal. + + The instance with which to compare. + + if this instance and are considered equal; otherwise, + . + + + + + - Represents a line that is composed of 32-bit signed integer X and Y coordinates. + Represents a line in 2D space that is composed of 32-bit signed integer X and Y coordinates. @@ -1425,7 +1942,18 @@ The start point. - + + + Returns a value indicating whether two instances of are equal. + + The first instance. + The second instance. + + if and are considered equal; otherwise, + . + + + Returns a value indicating whether two instances of are not equal. @@ -1436,18 +1964,7 @@ . - - - Returns a value indicating whether two instances of are not equal. - - The first instance. - The second instance. - - if and are considered not equal; otherwise, - . - - - + Returns a value indicating whether the length of one line is less than that of another. @@ -1458,7 +1975,7 @@ ; otherwise, . - + Returns a value indicating whether the length of one line is greater than that of another. @@ -1469,7 +1986,7 @@ ; otherwise, . - + Returns a value indicating whether the length of one line is less than or equal to that of another. @@ -1480,7 +1997,7 @@ ; otherwise, . - + Returns a value indicating whether the length of one line is greater than or equal to that of another. @@ -1588,9 +2105,261 @@ + + + Represents a line in 3D space that is composed of 32-bit signed integer X, Y and Z coordinates. + + + + + The empty line. That is, a line whose start and end points are at (0, 0). + + + + + The line whose start point is at (0, 0, 0) and end point is at (1, 1, 1). + + + + + The line whose start point is at (0, 0, 0) and end point is at (1, 0, 0). + + + + + The line whose start point is at (0, 0, 0) and end point is at (0, 1, 0). + + + + + The line whose start point is at (0, 0, 0) and end point is at (0, 0, 1). + + + + + Initializes a new instance of the struct by taking the start and end points. + + The start point. + The end point. + + + + Gets the end point of the line. + + The end point. + + + + Gets the length of this line. + + The length. + + + + Gets the length of this line, squared. + + The squared length. + + + + Gets the start point of the line. + + The start point. + + + + Returns a value indicating whether two instances of are equal. + + The first instance. + The second instance. + + if and are considered equal; otherwise, + . + + + + + Returns a value indicating whether two instances of are not equal. + + The first instance. + The second instance. + + if and are considered not equal; otherwise, + . + + + + + Returns a value indicating whether the length of one line is less than that of another. + + The first instance. + The second instance. + + if the of is less than that of + ; otherwise, . + + + + + Returns a value indicating whether the length of one line is greater than that of another. + + The first instance. + The second instance. + + if the of is greater than that of + ; otherwise, . + + + + + Returns a value indicating whether the length of one line is less than or equal to that of another. + + The first instance. + The second instance. + + if the of is less than or equal to that of + ; otherwise, . + + + + + Returns a value indicating whether the length of one line is greater than or equal to that of another. + + The first instance. + The second instance. + + if the of is greater than or equal to that of + ; otherwise, . + + + + + Explicitly converts a to a . + + The line to convert. + The converted line. + + + + Explicitly converts a to a . + + The line to convert. + The converted line. + + + + Implicitly converts a to a . + + The line to convert. + The converted line. + + + + Implicitly converts a to a . + + The line to convert. + The converted line. + + + + Compares this instance to another object. + + The object with with which to compare + + A signed number indicating the relative values of this instance and . + + + + Return value + Meaning + + + + Less than zero + + The of this instance is less than that of . + + + + Zero + + This instance is equal to , or the of both this instance + and are not a number (), + , or . + + + + Greater than zero + + The of this instance is greater than that of . + + + + + + Comparison internally measures the property to avoid calls to . + is not an instance of . + + + + + Compares this instance to another . + + + + A signed number indicating the relative values of this instance and . + + + + Return value + Meaning + + + + Less than zero + + The of this instance is less than that of . + + + + Zero + + This instance is equal to , or the of both this instance + and are not a number (), + , or . + + + + Greater than zero + + The of this instance is greater than that of . + + + + + + Comparison internally measures the property to avoid calls to . + + + + + + + + Returns a value indicating whether this instance and another instance are equal. + + The instance with which to compare. + + if this instance and are considered equal; otherwise, + . + + + + + - Represents a line that is composed of single-precision floating-point X and Y coordinates. + Represents a line in 2D space that is composed of single-precision floating-point X and Y coordinates. @@ -1651,7 +2420,18 @@ The start point. - + + + Returns a value indicating whether two instances of are equal. + + The first instance. + The second instance. + + if and are considered equal; otherwise, + . + + + Returns a value indicating whether two instances of are not equal. @@ -1662,18 +2442,7 @@ . - - - Returns a value indicating whether two instances of are not equal. - - The first instance. - The second instance. - - if and are considered not equal; otherwise, - . - - - + Returns a value indicating whether the length of one line is less than that of another. @@ -1684,7 +2453,7 @@ ; otherwise, . - + Returns a value indicating whether the length of one line is greater than that of another. @@ -1695,7 +2464,7 @@ ; otherwise, . - + Returns a value indicating whether the length of one line is less than or equal to that of another. @@ -1706,7 +2475,7 @@ ; otherwise, . - + Returns a value indicating whether the length of one line is greater than or equal to that of another. @@ -1717,19 +2486,19 @@ ; otherwise, . - + Explicitly converts a to a . The line to convert. The converted line. - + Implicitly converts a to a . The line to convert. - The line polygon. + The converted line. @@ -1866,26 +2635,39 @@ The point to convert. The resulting . + + + Converts the current to a . + + The point to convert. + The resulting . + - Represents a 2D polygon composed of 32-bit signed integer points. + Represents a 2D polygon composed of 32-bit signed integer vertices. - + - The empty polygon. That is, a polygon with no points. + Initializes a new instance of the class. - Initializes a new instance of the struct by copying the specified polygon. + Initializes a new instance of the class by copying the specified polygon. - Initializes a new instance of the struct by constructing it from the specified points. + Initializes a new instance of the class by constructing it from the specified vertices. - An enumerable collection of points from which the polygon should be constructed. + An enumerable collection of vertices from which the polygon should be constructed. + + + + Gets an empty polygon. That is, a polygon with no vertices. + + An empty polygon. @@ -1893,17 +2675,19 @@ if this polygon is convex; otherwise, . - + - Gets the number of points in this polygon. + Gets the number of vertices in this polygon. - An value, representing the number of points in this polygon. + An value, representing the number of vertices in this polygon. - + - Gets a read-only view of the points in this polygon. + Gets a read-only view of the vertices in this polygon. - A of values, representing the points of this polygon. + + A of values, representing the vertices of this polygon. + @@ -1927,22 +2711,22 @@ . - + - Adds a point to this polygon. + Adds a vertex to this polygon. - The point to add. + The vertex to add. - + - Adds a collection of points to this polygon. + Adds a collection of vertices to this polygon. - An enumerable collection of points to add. - is . + An enumerable collection of vertices to add. + is . - + - Clears all points from this polygon. + Clears all vertices from this polygon. @@ -1963,31 +2747,37 @@ - Represents a 2D polygon composed of single-precision floating-point points. + Represents a 2D polygon composed of single-precision floating-vertex vertices. - + - The empty polygon. That is, a polygon with no points. + Initializes a new instance of the class. - Initializes a new instance of the struct by copying the specified polygon. + Initializes a new instance of the class by copying the specified polygon. - Initializes a new instance of the struct by constructing it from the specified points. + Initializes a new instance of the class by constructing it from the specified vertices. - An enumerable collection of points from which the polygon should be constructed. + An enumerable collection of vertices from which the polygon should be constructed. - Initializes a new instance of the struct by constructing it from the specified points. + Initializes a new instance of the class by constructing it from the specified vertices. - An enumerable collection of points from which the polygon should be constructed. - is . + An enumerable collection of vertices from which the polygon should be constructed. + is . + + + + Gets an empty polygon. That is, a polygon with no vertices. + + An empty polygon. @@ -1995,17 +2785,19 @@ if this polygon is convex; otherwise, . - + - Gets the number of points in this polygon. + Gets the number of vertices in this polygon. - An value, representing the number of points in this polygon. + An value, representing the number of vertices in this polygon. - + - Gets a read-only view of the points in this polygon. + Gets a read-only view of the vertices in this polygon. - A of values, representing the points of this polygon. + + A of values, representing the vertices of this polygon. + @@ -2043,35 +2835,35 @@ The polygon to convert. The converted polygon. - + - Adds a point to this polygon. + Adds a vertex to this polygon. - The point to add. + The vertex to add. - + - Adds a point to this polygon. + Adds a vertex to this polygon. - The point to add. + The vertex to add. - + - Adds a collection of points to this polygon. + Adds a collection of vertices to this polygon. - An enumerable collection of points to add. - is . + An enumerable collection of vertices to add. + is . - + - Adds a collection of points to this polygon. + Adds a collection of vertices to this polygon. - An enumerable collection of points to add. - is . + An enumerable collection of vertices to add. + is . - + - Clears all points from this polygon. + Clears all vertices from this polygon. @@ -2090,6 +2882,123 @@ + + + Represents a 3D polyhedron composed of single-precision floating-point points. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class by copying the specified polyhedron. + + + + + Initializes a new instance of the class by constructing it from the specified vertices. + + An enumerable collection of vertices from which the polyhedron should be constructed. + + + + Gets an empty polyhedron. That is, a polygon with no vertices. + + An empty polyhedron. + + + + Returns a value indicating whether this polyhedron is convex. + + if this polyhedron is convex; otherwise, . + + + + Gets the number of vertices in this polyhedron. + + An value, representing the number of vertices in this polyhedron. + + + + Gets a read-only view of the vertices in this polyhedron. + + + A of values, representing the vertices of this polyhedron. + + + + + Returns a value indicating whether two instances of are equal. + + The first instance. + The second instance. + + if and are considered equal; otherwise, + . + + + + + Returns a value indicating whether two instances of are not equal. + + The first instance. + The second instance. + + if and are considered not equal; otherwise, + . + + + + + Implicitly converts a to a . + + The polyhedron to convert. + The converted polyhedron. + + + + Implicitly converts a to a . + + The polyhedron to convert. + The converted polyhedron. + + + + Adds a vertex to this polyhedron. + + The vertex to add. + + + + Adds a collection of vertices to this polyhedron. + + An enumerable collection of vertices to add. + is . + + + + Clears all vertices from this polyhedron. + + + + + + + + Returns a value indicating whether this instance and another instance are equal. + + The instance with which to compare. + + if this instance and are considered equal; otherwise, + . + + + + + Extension methods for . @@ -2137,6 +3046,227 @@ The size to convert. The resulting . + + + Represents a sphere in 3D space, which uses single-precision floating-point numbers for its coordinates. + + + + + The empty sphere. That is, a sphere with a radius of zero. + + + + + The unit sphere. That is, a sphere with a radius of 1. + + + + + Initializes a new instance of the struct. + + The X coordinate of the center point. + The Y coordinate of the center point. + The Z coordinate of the center point. + The radius. + + + + Initializes a new instance of the struct. + + The center point. + The radius. + + + + Gets the center-point of the sphere. + + The center point. + + + + Gets the circumference of the sphere. + + The circumference of the sphere, calculated as 2πr. + + + + Gets the diameter of the sphere. + + The diameter. + + + + Gets the radius of the sphere. + + The radius. + + + + Gets the volume of this sphere. + + The volume. + + + + Returns a value indicating whether two instances of are equal. + + The first instance. + The second instance. + + if and are considered equal; otherwise, + . + + + + + Returns a value indicating whether two instances of are not equal. + + The first instance. + The second instance. + + if and are considered not equal; otherwise, + . + + + + + Returns a value indicating whether the radius of one circle is less than that of another. + + The first instance. + The second instance. + + if the of is less than that of + ; otherwise, . + + + + + Returns a value indicating whether the radius of one circle is greater than to that of another. + + The first instance. + The second instance. + + if the of is greater than that of + ; otherwise, . + + + + + Returns a value indicating whether the radius of one circle is less than or equal to that of another. + + The first instance. + The second instance. + + if the of is less than or equal to that of + ; otherwise, . + + + + + Returns a value indicating whether the radius of one circle is greater than or equal to that of another. + + The first instance. + The second instance. + + if the of is greater than or equal to that of + ; otherwise, . + + + + + Compares this instance to another . + + The other object. + + A signed number indicating the relative values of this instance and . + + + + Return value + Meaning + + + + Less than zero + + The of this instance is less than that of . + + + + Zero + + This instance is equal to , or the of both this instance + and are not a number (), + , or . + + + + Greater than zero + + The of this instance is greater than that of , or + is . + + + + + Comparison only takes into consideration the . + is not an instance of . + + + + Compares this instance to another . + + The other sphere. + + A signed number indicating the relative values of this instance and . + + + + Return value + Meaning + + + + Less than zero + + The of this instance is less than that of . + + + + Zero + + This instance is equal to , or the of both this instance + and are not a number (), + , or . + + + + Greater than zero + + The of this instance is greater than that of . + + + + + Comparison only takes into consideration the . + + + + + + + Returns a value indicating whether this instance and another instance are equal. + + The instance with which to compare. + + if this instance and are considered equal; otherwise, + . + + + + + Represents an enumeration of endianness values. @@ -5444,6 +6574,19 @@ is 0 or the result overflows. + + + Numeric-related extension methods for . + + + + + Rotates the specified point with the specified rotation. + + The rotation. + The point. + The rotated point. + Extension methods for . diff --git a/package.json b/package.json index 0a9eb86..02a9084 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "url": "https://oliverbooth.dev" }, "displayName": "X10D", - "version": "3.2.0-nightly.113", + "version": "3.2.0-nightly.114", "unity": "2021.2", "description": "Extension methods on crack", "keywords": ["dotnet", "extension-methods"],