WinForm Animation Library
Public Member Functions | Static Public Member Functions | Properties | List of all members
WinFormAnimation.Float3D Class Reference

The Float3D class contains two values and represents a point in a 3D plane More...

Inheritance diagram for WinFormAnimation.Float3D:

Public Member Functions

 Float3D (float x, float y, float z)
 Initializes a new instance of the Float3D class. More...
 
 Float3D ()
 Initializes a new instance of the Float3D class. More...
 
TypeCode GetTypeCode ()
 Returns the T:System.TypeCode for this instance. More...
 
bool ToBoolean (IFormatProvider provider)
 Converts the value of this instance to an equivalent Boolean value using the specified culture-specific formatting information. More...
 
byte ToByte (IFormatProvider provider)
 Converts the value of this instance to an equivalent 8-bit unsigned integer using the specified culture-specific formatting information. More...
 
char ToChar (IFormatProvider provider)
 Converts the value of this instance to an equivalent Unicode character using the specified culture-specific formatting information. More...
 
DateTime ToDateTime (IFormatProvider provider)
 Converts the value of this instance to an equivalent T:System.DateTime using the specified culture-specific formatting information. More...
 
decimal ToDecimal (IFormatProvider provider)
 Converts the value of this instance to an equivalent T:System.Decimal number using the specified culture-specific formatting information. More...
 
double ToDouble (IFormatProvider provider)
 Converts the value of this instance to an equivalent double-precision floating-point number using the specified culture-specific formatting information. More...
 
short ToInt16 (IFormatProvider provider)
 Converts the value of this instance to an equivalent 16-bit signed integer using the specified culture-specific formatting information. More...
 
int ToInt32 (IFormatProvider provider)
 Converts the value of this instance to an equivalent 32-bit signed integer using the specified culture-specific formatting information. More...
 
long ToInt64 (IFormatProvider provider)
 Converts the value of this instance to an equivalent 64-bit signed integer using the specified culture-specific formatting information. More...
 
sbyte ToSByte (IFormatProvider provider)
 Converts the value of this instance to an equivalent 8-bit signed integer using the specified culture-specific formatting information. More...
 
float ToSingle (IFormatProvider provider)
 Converts the value of this instance to an equivalent single-precision floating-point number using the specified culture-specific formatting information. More...
 
ushort ToUInt16 (IFormatProvider provider)
 Converts the value of this instance to an equivalent 16-bit unsigned integer using the specified culture-specific formatting information. More...
 
uint ToUInt32 (IFormatProvider provider)
 Converts the value of this instance to an equivalent 32-bit unsigned integer using the specified culture-specific formatting information. More...
 
ulong ToUInt64 (IFormatProvider provider)
 Converts the value of this instance to an equivalent 64-bit unsigned integer using the specified culture-specific formatting information. More...
 
string ToString (IFormatProvider provider)
 Converts the value of this instance to an equivalent T:System.String using the specified culture-specific formatting information. More...
 
object ToType (Type conversionType, IFormatProvider provider)
 Converts the value of this instance to an T:System.Object of the specified T:System.Type that has an equivalent value, using the specified culture-specific formatting information. More...
 
bool Equals (Color other)
 Indicates whether the current object is equal to a Color object. More...
 
bool Equals (Float3D other)
 Indicates whether the current object is equal to another object of the same type. More...
 
override bool Equals (object obj)
 Determines whether the specified T:System.Object is equal to the current T:System.Object. More...
 
override int GetHashCode ()
 Serves as a hash function for a particular type. This code will change of the values of the X and Y changes. Make sure to not change the values while stored in a hash dependent data structure. More...
 
override string ToString ()
 Returns a string that represents the current Float3D. More...
 

Static Public Member Functions

static bool operator== (Float3D left, Float3D right)
 Compares two Float3D objects for equality More...
 
static bool operator!= (Float3D left, Float3D right)
 Compares two Float3D objects for in-equality More...
 
static implicit operator Color (Float3D float3D)
 Represents the values as an instance of the Color class More...
 
static Float3D FromColor (Color color)
 Creates and returns a new instance of the Float3D class from a Color instance More...
 

Properties

float X [get, set]
 Gets the horizontal value of the point More...
 
float Y [get, set]
 Gets the vertical value of the point More...
 
float Z [get, set]
 Gets the depth value of the point More...
 

Detailed Description

The Float3D class contains two values and represents a point in a 3D plane

Definition at line 10 of file Float3D.cs.

Constructor & Destructor Documentation

WinFormAnimation.Float3D.Float3D ( float  x,
float  y,
float  z 
)

Initializes a new instance of the Float3D class.

Parameters
xThe horizontal value
yThe vertical value
zThe depth value

Definition at line 24 of file Float3D.cs.

WinFormAnimation.Float3D.Float3D ( )

Initializes a new instance of the Float3D class.

Definition at line 34 of file Float3D.cs.

Member Function Documentation

bool WinFormAnimation.Float3D.Equals ( Color  other)

Indicates whether the current object is equal to a Color object.

Returns
true if the current object is equal to the other parameter; otherwise, false.
Parameters
otherAn object to compare with this object.

Definition at line 359 of file Float3D.cs.

bool WinFormAnimation.Float3D.Equals ( Float3D  other)

Indicates whether the current object is equal to another object of the same type.

Returns
true if the current object is equal to the other parameter; otherwise, false.
Parameters
otherAn object to compare with this object.

Definition at line 371 of file Float3D.cs.

override bool WinFormAnimation.Float3D.Equals ( object  obj)

Determines whether the specified T:System.Object is equal to the current T:System.Object.

Returns
true if the specified T:System.Object is equal to the current T:System.Object; otherwise, false.
Parameters
objThe T:System.Object to compare with the current T:System.Object.

Definition at line 385 of file Float3D.cs.

static Float3D WinFormAnimation.Float3D.FromColor ( Color  color)
static

Creates and returns a new instance of the Float3D class from a Color instance

Parameters
colorThe object to create the Float3D instance from
Returns
The newly created Float3D instance

Definition at line 477 of file Float3D.cs.

override int WinFormAnimation.Float3D.GetHashCode ( )

Serves as a hash function for a particular type. This code will change of the values of the X and Y changes. Make sure to not change the values while stored in a hash dependent data structure.

Returns
A hash code for the current Float3D.

Definition at line 404 of file Float3D.cs.

TypeCode WinFormAnimation.Float3D.GetTypeCode ( )

Returns the T:System.TypeCode for this instance.

Returns
The enumerated constant that is the T:System.TypeCode of the class or value type that implements this interface.

Definition at line 60 of file Float3D.cs.

static implicit WinFormAnimation.Float3D.operator Color ( Float3D  float3D)
static

Represents the values as an instance of the Color class

Parameters
float3DThe Float3D class to convert
Returns
A new instance of the Color class representing the values in the Float3D instance

Definition at line 456 of file Float3D.cs.

static bool WinFormAnimation.Float3D.operator!= ( Float3D  left,
Float3D  right 
)
static

Compares two Float3D objects for in-equality

Parameters
leftLeft Float3D object
rightRight Float3D object
Returns
false if both objects are equal, otherwise true

Definition at line 442 of file Float3D.cs.

static bool WinFormAnimation.Float3D.operator== ( Float3D  left,
Float3D  right 
)
static

Compares two Float3D objects for equality

Parameters
leftLeft Float3D object
rightRight Float3D object
Returns
true if both objects are equal, otherwise false

Definition at line 424 of file Float3D.cs.

bool WinFormAnimation.Float3D.ToBoolean ( IFormatProvider  provider)

Converts the value of this instance to an equivalent Boolean value using the specified culture-specific formatting information.

Returns
A Boolean value equivalent to the value of this instance.
Parameters
providerAn T:System.IFormatProvider interface implementation that supplies culture-specific formatting information.
Exceptions
InvalidCastExceptionThis method is not supported

Definition at line 78 of file Float3D.cs.

byte WinFormAnimation.Float3D.ToByte ( IFormatProvider  provider)

Converts the value of this instance to an equivalent 8-bit unsigned integer using the specified culture-specific formatting information.

Returns
An 8-bit unsigned integer equivalent to the value of this instance.
Parameters
providerAn T:System.IFormatProvider interface implementation that supplies culture-specific formatting information.
Exceptions
InvalidCastExceptionThis method is not supported

Definition at line 95 of file Float3D.cs.

char WinFormAnimation.Float3D.ToChar ( IFormatProvider  provider)

Converts the value of this instance to an equivalent Unicode character using the specified culture-specific formatting information.

Returns
A Unicode character equivalent to the value of this instance.
Parameters
providerAn T:System.IFormatProvider interface implementation that supplies culture-specific formatting information.
Exceptions
InvalidCastExceptionThis method is not supported

Definition at line 112 of file Float3D.cs.

DateTime WinFormAnimation.Float3D.ToDateTime ( IFormatProvider  provider)

Converts the value of this instance to an equivalent T:System.DateTime using the specified culture-specific formatting information.

Returns
A T:System.DateTime instance equivalent to the value of this instance.
Parameters
providerAn T:System.IFormatProvider interface implementation that supplies culture-specific formatting information.
Exceptions
InvalidCastExceptionThis method is not supported

Definition at line 130 of file Float3D.cs.

decimal WinFormAnimation.Float3D.ToDecimal ( IFormatProvider  provider)

Converts the value of this instance to an equivalent T:System.Decimal number using the specified culture-specific formatting information.

Returns
A T:System.Decimal number equivalent to the value of this instance.
Parameters
providerAn T:System.IFormatProvider interface implementation that supplies culture-specific formatting information.
Exceptions
InvalidCastExceptionThis method is not supported

Definition at line 148 of file Float3D.cs.

double WinFormAnimation.Float3D.ToDouble ( IFormatProvider  provider)

Converts the value of this instance to an equivalent double-precision floating-point number using the specified culture-specific formatting information.

Returns
A double-precision floating-point number equivalent to the value of this instance.
Parameters
providerAn T:System.IFormatProvider interface implementation that supplies culture-specific formatting information.
Exceptions
InvalidCastExceptionThis method is not supported

Definition at line 166 of file Float3D.cs.

short WinFormAnimation.Float3D.ToInt16 ( IFormatProvider  provider)

Converts the value of this instance to an equivalent 16-bit signed integer using the specified culture-specific formatting information.

Returns
An 16-bit signed integer equivalent to the value of this instance.
Parameters
providerAn T:System.IFormatProvider interface implementation that supplies culture-specific formatting information.
Exceptions
InvalidCastExceptionThis method is not supported

Definition at line 184 of file Float3D.cs.

int WinFormAnimation.Float3D.ToInt32 ( IFormatProvider  provider)

Converts the value of this instance to an equivalent 32-bit signed integer using the specified culture-specific formatting information.

Returns
An 32-bit signed integer equivalent to the value of this instance.
Parameters
providerAn T:System.IFormatProvider interface implementation that supplies culture-specific formatting information.
Exceptions
InvalidCastExceptionThis method is not supported

Definition at line 201 of file Float3D.cs.

long WinFormAnimation.Float3D.ToInt64 ( IFormatProvider  provider)

Converts the value of this instance to an equivalent 64-bit signed integer using the specified culture-specific formatting information.

Returns
An 64-bit signed integer equivalent to the value of this instance.
Parameters
providerAn T:System.IFormatProvider interface implementation that supplies culture-specific formatting information.
Exceptions
InvalidCastExceptionThis method is not supported

Definition at line 219 of file Float3D.cs.

sbyte WinFormAnimation.Float3D.ToSByte ( IFormatProvider  provider)

Converts the value of this instance to an equivalent 8-bit signed integer using the specified culture-specific formatting information.

Returns
An 8-bit signed integer equivalent to the value of this instance.
Parameters
providerAn T:System.IFormatProvider interface implementation that supplies culture-specific formatting information.
Exceptions
InvalidCastExceptionThis method is not supported

Definition at line 237 of file Float3D.cs.

float WinFormAnimation.Float3D.ToSingle ( IFormatProvider  provider)

Converts the value of this instance to an equivalent single-precision floating-point number using the specified culture-specific formatting information.

Returns
A single-precision floating-point number equivalent to the value of this instance.
Parameters
providerAn T:System.IFormatProvider interface implementation that supplies culture-specific formatting information.
Exceptions
InvalidCastExceptionThis method is not supported

Definition at line 255 of file Float3D.cs.

string WinFormAnimation.Float3D.ToString ( IFormatProvider  provider)

Converts the value of this instance to an equivalent T:System.String using the specified culture-specific formatting information.

Returns
A T:System.String instance equivalent to the value of this instance.
Parameters
providerAn T:System.IFormatProvider interface implementation that supplies culture-specific formatting information.

Definition at line 324 of file Float3D.cs.

override string WinFormAnimation.Float3D.ToString ( )

Returns a string that represents the current Float3D.

Returns
A string that represents the current Float3D.

Definition at line 467 of file Float3D.cs.

object WinFormAnimation.Float3D.ToType ( Type  conversionType,
IFormatProvider  provider 
)

Converts the value of this instance to an T:System.Object of the specified T:System.Type that has an equivalent value, using the specified culture-specific formatting information.

Returns
An T:System.Object instance of type conversionType whose value is equivalent to the value of this instance.
Parameters
conversionTypeThe T:System.Type to which the value of this instance is converted.
providerAn T:System.IFormatProvider interface implementation that supplies culture-specific formatting information.

Definition at line 343 of file Float3D.cs.

ushort WinFormAnimation.Float3D.ToUInt16 ( IFormatProvider  provider)

Converts the value of this instance to an equivalent 16-bit unsigned integer using the specified culture-specific formatting information.

Returns
An 16-bit unsigned integer equivalent to the value of this instance.
Parameters
providerAn T:System.IFormatProvider interface implementation that supplies culture-specific formatting information.
Exceptions
InvalidCastExceptionThis method is not supported

Definition at line 272 of file Float3D.cs.

uint WinFormAnimation.Float3D.ToUInt32 ( IFormatProvider  provider)

Converts the value of this instance to an equivalent 32-bit unsigned integer using the specified culture-specific formatting information.

Returns
An 32-bit unsigned integer equivalent to the value of this instance.
Parameters
providerAn T:System.IFormatProvider interface implementation that supplies culture-specific formatting information.
Exceptions
InvalidCastExceptionThis method is not supported

Definition at line 290 of file Float3D.cs.

ulong WinFormAnimation.Float3D.ToUInt64 ( IFormatProvider  provider)

Converts the value of this instance to an equivalent 64-bit unsigned integer using the specified culture-specific formatting information.

Returns
An 64-bit unsigned integer equivalent to the value of this instance.
Parameters
providerAn T:System.IFormatProvider interface implementation that supplies culture-specific formatting information.
Exceptions
InvalidCastExceptionThis method is not supported

Definition at line 308 of file Float3D.cs.

Property Documentation

float WinFormAnimation.Float3D.X
getset

Gets the horizontal value of the point

Definition at line 41 of file Float3D.cs.

float WinFormAnimation.Float3D.Y
getset

Gets the vertical value of the point

Definition at line 46 of file Float3D.cs.

float WinFormAnimation.Float3D.Z
getset

Gets the depth value of the point

Definition at line 51 of file Float3D.cs.


The documentation for this class was generated from the following file: