org.jcodec.common.model
Class RationalLarge
java.lang.Object
org.jcodec.common.model.RationalLarge
public class RationalLarge
- extends Object
This class is part of JCodec ( www.jcodec.org ) This software is distributed
under FreeBSD License
- Author:
- The JCodec project
ONE
public static final Rational ONE
HALF
public static final Rational HALF
ZERO
public static final RationalLarge ZERO
RationalLarge
public RationalLarge(long num,
long den)
getNum
public long getNum()
getDen
public long getDen()
parse
public static Rational parse(String string)
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
multiplyS
public long multiplyS(long scalar)
divideS
public long divideS(long scalar)
divideByS
public long divideByS(long scalar)
flip
public RationalLarge flip()
R
public static RationalLarge R(long num,
long den)
lessThen
public boolean lessThen(RationalLarge sec)
greaterThen
public boolean greaterThen(RationalLarge sec)
smallerOrEqualTo
public boolean smallerOrEqualTo(RationalLarge sec)
greaterOrEqualTo
public boolean greaterOrEqualTo(RationalLarge sec)
equals
public boolean equals(RationalLarge other)
plus
public RationalLarge plus(RationalLarge other)
minus
public RationalLarge minus(RationalLarge other)
plus
public RationalLarge plus(long scalar)
minus
public RationalLarge minus(long scalar)
multiply
public RationalLarge multiply(long scalar)
divide
public RationalLarge divide(long scalar)
divideBy
public RationalLarge divideBy(long scalar)
multiply
public RationalLarge multiply(RationalLarge other)
divide
public RationalLarge divide(RationalLarge other)
divideBy
public RationalLarge divideBy(RationalLarge other)
scalar
public double scalar()
Copyright © 2013. All Rights Reserved.