MathObject Classe
Definizione
Vengono forniti costanti e metodi statici per eseguire funzioni trigonometriche, funzioni logaritmiche e normali funzioni matematiche.Provides constants and static methods for trigonometric functions, logarithmic functions, and other common mathematical functions. La classe appartiene alla categoria del modello a oggetti incorporata.This class belongs to the built-in object model category.
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice.
public ref class MathObject : Microsoft::JScript::JSObject
public class MathObject : Microsoft.JScript.JSObject
type MathObject = class
inherit JSObject
Public Class MathObject
Inherits JSObject
- Ereditarietà
- Derivato
Campi
E |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Archivia un valore che rappresenta la costante di Eulero, che costituisce la base del logaritmo naturale, specificato dalla costante e.Stores a value that represents Euler's constant, which is the base of the natural logarithm, specified by the constant e. |
engine |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Archivia un riferimento al motore di script.Stores a reference to the scripting engine. (Ereditato da ScriptObject) |
field_table |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Archivia un elenco di campi aggiunti e rimossi dall'oggetto in modo dinamico.Stores a list of fields that are dynamically added and removed from the object. (Ereditato da JSObject) |
LN10 |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Archivia un valore che rappresenta la base logaritmica e di 10, il logaritmo naturale di 10.Stores a value that represents the logarithm base e of 10, the natural logarithm of 10. |
LN2 |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Archivia un valore che rappresenta la base logaritmica e di 2, il logaritmo naturale di 2.Stores a value that represents the logarithm base e of 2, the natural logarithm of 2. |
LOG10E |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Archivia un valore che rappresenta la base logaritmica 10 di e, il logaritmo comune di e.Stores a value that represents the logarithm base 10 of e, the common logarithm of e. |
LOG2E |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Archivia un valore che rappresenta la base logaritmica 2 di e, il logaritmo binario di e.Stores a value that represents the logarithm base 2 of e, the binary logarithm of e. |
parent |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Archivia un riferimento all'oggetto padre.Stores a reference to the parent object. (Ereditato da ScriptObject) |
PI |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Archivia un valore che rappresenta il rapporto tra la circonferenza del cerchio e il suo diametro, specificato dalla costante π.Stores a value that represents the ratio of the circumference of a circle to its diameter, specified by the constant π. |
SQRT1_2 |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Archivia un valore che rappresenta i seguenti valori equivalenti: (√2)/2, √(½) e 1/(√2).Stores a value that represents the following equivalent values: (√2)/2, √(½), and 1/(√2). |
SQRT2 |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Archivia un valore che rappresenta √2.Stores a value that represents √2. |
Proprietà
Item[Double] |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Ottiene o imposta un membro dell'oggetto script designato dal valore di indice Double specificato.Gets or sets a member of the script object that is designated by the specified Double index value. (Ereditato da ScriptObject) |
Item[Int32] |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Ottiene o imposta un membro dell'oggetto script designato dal valore di indice Int32 specificato.Gets or sets a member of the script object that is designated by the specified Int32 index value. (Ereditato da ScriptObject) |
Item[Object[]] |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Ottiene o imposta un membro dell'oggetto script designato dal nome, dal valore di indice Double o dal valore di indice Int32 specificato.Gets or sets a member of the script object that is designated by the specified name, Double index value, or Int32 index value. (Ereditato da ScriptObject) |
Item[String] |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Ottiene o imposta un membro dell'oggetto script designato dal nome specificato.Gets or sets a member of the script object that is designated by the specified name. (Ereditato da ScriptObject) |
UnderlyingSystemType |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Ottiene il tipo dell'oggetto script.Gets the type of the script object. (Ereditato da ScriptObject) |
Metodi
abs(Double) |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Calcola il valore assoluto del numero specificato.Calculates the absolute value of the specified number. |
acos(Double) |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Calcola il coseno inverso del numero specificato.Calculates the inverse cosine of the specified number. |
AddField(String) |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Aggiunge il campo specificato all'oggetto.Adds the specified field to the object. (Ereditato da JSObject) |
asin(Double) |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Calcola il seno inverso del numero specificato.Calculates the inverse sine of the specified number. |
atan(Double) |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Calcola la tangente inversa del numero specificato.Calculates the inverse tangent of the specified number. |
atan2(Double, Double) |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Calcola la tangente inversa del quoziente dei numeri specificati.Calculates the inverse tangent of the quotient of the specified numbers. |
ceil(Double) |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Calcola la parte intera superiore del numero specificato, che è l'intero minimo maggiore o uguale al numero specificato.Calculates the ceiling of the specified number, which is the smallest integer that is greater than or equal to the specified number. |
cos(Double) |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Calcola il coseno dell'angolo specificato.Calculates the cosine of the specified angle. |
Equals(Object) |
Determina se l'oggetto specificato è uguale all'oggetto corrente.Determines whether the specified object is equal to the current object. (Ereditato da Object) |
exp(Double) |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Calcola il numero e elevato alla potenza specificata, dove e è la costante di Eulero, la base del logaritmo naturale.Calculates the number e to the raised specified power, where e is Euler's constant, the base of the natural logarithm. |
floor(Double) |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Calcola la parte intera del numero specificato, che è l'intero massimo inferiore o uguale al numero specificato.Calculates the floor of the specified number, which is the largest integer that is less than or equal to the specified number. |
GetField(String, BindingFlags) |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Ottiene un campo con il nome specificato.Gets a field that has the specified name. (Ereditato da ScriptObject) |
GetFields(BindingFlags) |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Ottiene una matrice di oggetti FieldInfo corrispondenti a tutti i campi dell'oggetto script corrente.Gets an array of FieldInfo objects that correspond to all fields of the current script object. (Ereditato da ScriptObject) |
GetHashCode() |
Funge da funzione hash predefinita.Serves as the default hash function. (Ereditato da Object) |
GetMember(String, BindingFlags) |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Ottiene una matrice di oggetti MemberInfo corrispondenti a tutti i membri che corrispondono al nome specificato.Gets an array of MemberInfo objects that correspond to all members that match the specified name. (Ereditato da JSObject) |
GetMembers(BindingFlags) |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Ottiene una matrice di oggetti MemberInfo corrispondenti a tutti i membri dell'oggetto script corrente.Gets an array of MemberInfo objects that correspond to all members of the current script object. (Ereditato da JSObject) |
GetMethod(String, BindingFlags) |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Ottiene un metodo con il nome specificato.Gets a method that has the specified name. (Ereditato da ScriptObject) |
GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[]) |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Ottiene un metodo con il nome specificato utilizzando i criteri di selezione specificati.Gets a method that has the specified name by using the specified selection criteria. (Ereditato da ScriptObject) |
GetMethods(BindingFlags) |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Ottiene una matrice di oggetti MethodInfo corrispondenti a tutti i metodi dell'oggetto script corrente.Gets an array of MethodInfo objects that correspond to all methods of the current script object. (Ereditato da ScriptObject) |
GetParent() |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Ottiene un riferimento all'oggetto padre.Gets a reference to the parent object. (Ereditato da ScriptObject) |
GetProperties(BindingFlags) |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Ottiene una matrice di oggetti PropertyInfo corrispondenti a tutte le proprietà dell'oggetto script corrente.Gets an array of PropertyInfo objects that correspond to all properties of the current script object. (Ereditato da ScriptObject) |
GetProperty(String, BindingFlags) |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Ottiene una proprietà con il nome specificato.Gets a property that has the specified name. (Ereditato da ScriptObject) |
GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[]) |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Ottiene una proprietà con il nome specificato utilizzando i criteri di selezione specificati.Gets a property that has the specified name by using the specified selection criteria. (Ereditato da ScriptObject) |
GetType() |
Ottiene l'oggetto Type dell'istanza corrente.Gets the Type of the current instance. (Ereditato da Object) |
InvokeMember(String, BindingFlags, Binder, Object, Object[], ParameterModifier[], CultureInfo, String[]) |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Richiama il membro specificato.Invokes the specified member. (Ereditato da ScriptObject) |
log(Double) |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Calcola la base logaritmica e del numero specificato, che è il logaritmo naturale del numero specificato.Calculates the logarithm base e of the specified number, which is the natural logarithm of the specified number. |
max(Object, Object, Object[]) |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Restituisce il più elevato tra due o più numeri specificati.Returns the largest of two or more specified numbers. |
MemberwiseClone() |
Crea una copia superficiale dell'oggetto Object corrente.Creates a shallow copy of the current Object. (Ereditato da Object) |
min(Object, Object, Object[]) |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Restituisce il più basso tra due o più numeri specificati.Returns the smallest of two or more specified numbers. |
pow(Double, Double) |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Calcola il numero specificato elevato alla potenza specificata.Calculates the specified number raised to the specified power. |
random() |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Genera un numero casuale compreso tra 0 e 1.Generates a random number between 0 and 1. Questo metodo non genera un numero casuale sicuro da un punto di vista crittografico.This method does not generate a cryptographically secure random number. |
round(Double) |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Arrotonda il numero specificato per difetto o per eccesso all'intero più vicino.Rounds the specified number down or up to the nearest integer. |
SetMemberValue2(String, Object) |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Imposta il valore di un campo aggiunto in modo dinamico all'oggetto e archiviato in field_table.Sets the value of a field that was dynamically added to the object and stored in field_table. (Ereditato da JSObject) |
sin(Double) |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Calcola il seno dell'angolo specificato.Calculates the sine of the specified angle. |
sqrt(Double) |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Calcola la radice quadrata del numero specificato.Calculates the square root of the specified number. |
tan(Double) |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Calcola la tangente dell'angolo specificato.Calculates the tangent of the specified angle. |
ToString() |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Restituisce una stringa che rappresenta l'oggetto corrente.Returns a string that represents the current object. (Ereditato da JSObject) |
Implementazioni dell'interfaccia esplicita
IEnumerable.GetEnumerator() |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Restituisce un enumeratore che consente di scorrere i membri dell'oggetto.Returns an enumerator that iterates through the members of the object. (Ereditato da JSObject) |
IExpando.AddMethod(String, Delegate) |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Aggiunge il metodo specificato all'oggetto.Adds the specified method to the object. IExpando.AddMethod(String, Delegate) non è implementato in JScript.IExpando.AddMethod(String, Delegate) is not implemented in JScript. (Ereditato da JSObject) |
IExpando.AddProperty(String) |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Aggiunge la proprietà specificata all'oggetto.Adds the specified property to the object. Questo metodo non è implementato in JScript.This method is not implemented in JScript. (Ereditato da JSObject) |
IExpando.RemoveMember(MemberInfo) |
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice. Rimuove il membro specificato dall'oggetto.Removes the specified member from the object. (Ereditato da JSObject) |
Metodi di estensione
Cast<TResult>(IEnumerable) |
Esegue il cast degli elementi di un oggetto IEnumerable nel tipo specificato.Casts the elements of an IEnumerable to the specified type. |
OfType<TResult>(IEnumerable) |
Filtra gli elementi di un oggetto IEnumerable in base a un tipo specificato.Filters the elements of an IEnumerable based on a specified type. |
AsParallel(IEnumerable) |
Consente la parallelizzazione di una query.Enables parallelization of a query. |
AsQueryable(IEnumerable) |
Converte un oggetto IEnumerable in un oggetto IQueryable.Converts an IEnumerable to an IQueryable. |